Thursday, 23 June 2016

arcgis desktop - How to identify overlapping polygons


My non-GIS coworkers are always baffled by the results of intersection queries, because they expect the result pictured below, but instead, they get every single feature being selected.


Part of the problem is that ESRI uses the term "intersect" to refer to both of these, completely different spatial relationships (see: Select by Location Intersect vs the Intersect analysis tool).


I always use work-arounds (typically a union/intersection analysis and then a series of cursors), but there must be a spatial relationship defined somewhere in ESRI's capabilities that selects features as selected in the picture below based on their relationship to the underlying, green feature. That mystery definition is apparently used in the Intersect tool, but what if we want to stop it short of cutting the features and instead copy the entire feature that otherwise would be sliced up and only partially retained?


Is there some other tool where such a selection capability might exist?


It's an "overlap", as simply and straightforwardly interpreted everyday in our language, so where is it in ArcGIS?


enter image description here




Answer



Run the Intersect tool, and then use the FID field to Relate the Intersect results layer back to the original layer. (Relate here in the Esri Joins and Relates sense).


This gives you the best of both: the detail of the intersect layer, but the ability to select the originals (as in the original poster's screenshot) and do what you like with them.


The workflow is:



  1. Run the Intersect tool on the source layer;

  2. Relate the resulting layer to the source layer, based on the FID_ and OBJECTID columns respectively;

  3. Select all records in the resulting layer;

  4. In the attribute table of the resulting layer, use the Related Tables button to select the related shapes: these are the original shapes, as wanted.



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...