How To: Determine the percentage of lines that fall within polygons
When features, such as lines, overlay other features in a map, like the polygon below, calculating the percentage of the feature overlaying another helps determine how much area is covered. The percentage of lines covered by polygons may be calculated to avoid extra segments in the map, or strictly for analysis purposes.
The instructions provided describe how to determine the percentage of lines that fall within polygons.
Option A: Use the Tabulate Intersection tool
Note: This tool requires an ArcGIS for Desktop Advanced license.
In the Catalog window, navigate to System Toolboxes > Analysis Tools > Statistics > Tabulate Intersection.
Set a polygon feature as the Input Zone Features.
Select the Shape_Length field from the drop-down list for Zone Fields.
Select the line feature as the Input Class Feature.
Specify the location for the Output Table.
Note: Ensure the Output Table is saved in a geodatabase.
Click OK. A new table containing the Calculated Percentage is created.
For more information on how to use the Tabulate Intersection geoprocessing tool, refer to the following ArcMap Help topic: Tabulate Intersection.
Option B: Calculate the percentage manually
Add a new field to the attribute table of the line feature class to store the full length values, using Double for the Type.
Right-click the field > Calculate Geometry. Populate the field with the length values.
Run the Intersect tool. To do this:
Navigate to System Toolboxes > Analysis Tools > Overlay > Intersect.
Add both the line features and the polygon features as Input Features.
Specify the Output Feature Class.
Click OK. A new feature class with new shape lengths is created.
Add a new field in the output table to store the Calculated Percentage, using Double for Type.
Right-click the field > Field Calculator. Calculate the percentage of lines in polygons: