Problem in the function "SelectLayerByLocation_management" with common edge

3025
2
Jump to solution
12-02-2015 07:54 PM
calgis
by
New Contributor

I used the function "SelectLayerByLocation_management" with parameter "SHARE_A_LINE_SEGMENT_WITH" to select Grid polygon by using the line (refer to the attached picture for details). However, just only polygon A is selected but not both polygon A and B are selected. Polygon A and Polygon B have a common edge.  Does anyone know the reason? If  I want to select polygon A and polygon B by using the red line (common edge), what syntax I should use? Thanks.

selectbylocation.jpg

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

the main link Select Layer By Location—Help | ArcGIS for Desktop

the select within layer link Select By Location: Select based on spatial relationship within the layer—Help | ArcGIS for Desktop

I would have expected a different outcome given your input unless your boundary were a segmented polyline, I would have expected the surrounding to be selected not just the boundary you want

View solution in original post

0 Kudos
2 Replies
DanPatterson_Retired
MVP Emeritus

the main link Select Layer By Location—Help | ArcGIS for Desktop

the select within layer link Select By Location: Select based on spatial relationship within the layer—Help | ArcGIS for Desktop

I would have expected a different outcome given your input unless your boundary were a segmented polyline, I would have expected the surrounding to be selected not just the boundary you want

0 Kudos
calgis
by
New Contributor

Thanks Dan. I found that the selection result will be what I expected if I extracted few Grid polygons to another new GDB for selection. I think the problem is caused by my master layer.

0 Kudos