I have a layer with line segments and a layer of polygons (in this case, buffers around points). I need to create a new field for each polygon that contains the total length of all line segments contained within that polygon, including portions of the line segments with the polygon that straddle the borders.
[GIS] Calculating line segment lengths within polygon using ArcGIS Desktop
arcgis-10.0arcgis-desktoplengthlinepolygon
Best Answer
A slight modification of the answer linked in the comments would be to do a Summary Statistics to get the SUM of the
Shape.Length
field of the intersect feature class, using the FID field of the polygons a case field, and then Join Field that back to the polygon feature class.In the ArcMap 10.1 Python window, these commands worked for me: