# Given a layer of counties and a layer of roads, summarize the total mileage of roads by road name

Given a road layer and a county layer. I need to know the mileage of roads by road name in each county.

How can I do that?

• Are you a python user? Nov 9, 2016 at 17:45
• I am a newbie for python. Know a little bit. Nov 9, 2016 at 18:20
• intersect, dissolve by county name and within that dissolve tool add field and calculate sum of shape area Nov 11, 2016 at 19:21

Look at this question : Calculating line segment lengths within polygon using ArcGIS Desktop?

Both of them have good answers.

• Thanks for the answer. I have looked at them before I posted the question but I will take a closer look. Nov 9, 2016 at 18:19
• I think both of them want the total line length within a polygon which is different. My question is to calculate the percentage of each line record within each of those polygons that intersected... Nov 9, 2016 at 18:27
• Then a work around will be: to get the lengths of the lines that intersected the polygons in column, get the overall length of the lines in another column and then you can work out the percentage! Nov 9, 2016 at 19:25
• Not really. I have many line records and each one of them need to do the analysis separately. In your method, I will need to use each line record as a separate layer in order to do that..that is impossible for me to run the anlaysis Nov 9, 2016 at 21:20
• Using either Union or Intersect, with the source line length as an attribute in the line table is the canonical solution. Nov 9, 2016 at 21:35