How can i select Polygons that intersect 1 mile of a line?

468
8
Jump to solution
08-05-2021 12:32 PM
JordanVilcapoma
New Contributor

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. 

0 Kudos
1 Solution

Accepted Solutions
DavidPike
MVP Frequent Contributor

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

 

View solution in original post

8 Replies
DavidPike
MVP Frequent Contributor
0 Kudos
JordanVilcapoma
New Contributor

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  

0 Kudos
DavidPike
MVP Frequent Contributor

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.

0 Kudos
JordanVilcapoma
New Contributor

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. 

0 Kudos
DavidPike
MVP Frequent Contributor

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.

0 Kudos
JordanVilcapoma
New Contributor

I do have an Advance License to do the Tabular Intersection.

0 Kudos
DavidPike
MVP Frequent Contributor

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

 

View solution in original post

PrimaliWeerasinghe1
New Contributor II
Hi
You have to create a buffer with 1-mile distance for the line features. It
will be separate layer and then overlay with polygon layer with intersect.

Good luck.
0 Kudos