Hello Community,
I'm looking for a way to select polygons that intersect 1 mile of a polyline? If you look at the image attached, each square is a 1 by 1 mile. There are some instances where the line barely crosses a square, I'm trying to be able to select the polygons that have 1 mile intersecting by the line.
Thank you.
Solved! Go to Solution.
Sorry I misread.
Input Zone features - your polygons
Zone fields - OBJECTID or a uniquely identifying field
Input class features - your black lines
output table - name of your desired output table
class fields - blank
sum fields - blank
output units - miles
Select by Location - https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/select-features-by-location.htm
https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-layer-by-location.htm
overlap_type = 'WITHIN_A_DISTANCE' or 'WITHIN_A_DISTANCE_GEODESIC' and enter a search_distance of 1 mile
I have tried doing the Within a Distance but it doesn't do what i want. I want to select the Pink polygons that contain at least .5 or 1 miles of the black polyline. If the black polyline is less than .5 miles intersecting the pink polygons it should not be selected
OK, some confusion as to what you meant.
I would just do a spatial join https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/spatial-join.htm ensuring you have a field_mapping 'SUM' rule on the SHAPE_LENGTH field of the line.
NB first you would have to ensure the lines are at-least split at the polygon intersection, run https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/intersect.htm to produce points of the line-polygon intersections and then https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/split-line-at-point.htm
The joined output will then have an additional field which is the total length of the line within the polygon.
If you have an Advanced License, by far the easiest method will be https://pro.arcgis.com/en/pro-app/latest/tool-reference/analysis/tabulate-intersection.htm tabulate intersection, then join the resulting table back to your FC.
DavidPike,
I do have an Advance License. Could you provide how i should do this with the Tabulate Intersection. I have not use this tool before.
Thanks.
If you don't have an advanced license I would follow the steps outlined in the other option. also ensure the intersect option doesn't select segments only touching the edge of the polygon, you'd need within or clementi from memory.
I do have an Advance License to do the Tabular Intersection.
Sorry I misread.
Input Zone features - your polygons
Zone fields - OBJECTID or a uniquely identifying field
Input class features - your black lines
output table - name of your desired output table
class fields - blank
sum fields - blank
output units - miles