Hey all,
I imported road centerlines from Open Street Maps and need to select the lines that that fall within a polygon. The issue I am seeing is that when I use "Within" it selects only the lines that fall completely within the polygon, thus missing a portion of other polylines that would also fall within. If I use the "Intersect" option it selects all of the polylines, but also includes the portion of the lines that fall outside of the polygon rather than terminating the selection at the polygon boundary. Is there something within the OSM Data that might cause this? Do I need to modify the data to allow the partial selection of a polyline?
Solved! Go to Solution.
The select by location tool will not split the lines for you, so if a line crosses out of the polygon with intersect, the entire line would be selected. If you are only after the part that is completely within, you will need to split the lines at the polygon boundaries first, or, if you have advanced license, you could use the Intersect GP Tool.
This article gives you more info.
R_
@FlightDeck Please review the details on each of the Relationship parameter options and you will get to the best results with a few iterations:
Select Layer By Location > Relationship
Example Graphics at: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/select-by-location-graphical...
Hey Ayan,
I guess I'm not sure how to apply your response. I've iterated through the options and the ones that work don't provide the expected result.
@FlightDeck I am referring to the section below:
You can post screenshot examples of what you get vs expectation. It is possible the data is missing some attribution or the desired selection can't be performed using the out of the box tool.
The select by location tool will not split the lines for you, so if a line crosses out of the polygon with intersect, the entire line would be selected. If you are only after the part that is completely within, you will need to split the lines at the polygon boundaries first, or, if you have advanced license, you could use the Intersect GP Tool.
This article gives you more info.
R_