Wednesday 16 January 2019

arcgis desktop - Removing duplicate features with same geometry in ArcMap?


Is it possible to uniquely identify each geometry in a feature layer?


Essentially I have a polygon feature layer with many rows of data represented by the same geometry. I would like 1 row for each unique geometry. So I'm looking for some out-of-box methodology to combine attributes based on the shape of the geometry.


I come from a Postgres world and can solve this problem there, but I don't know how to do it (or if it's possible) to do it non-programmatically with ESRI tools.



Answer



If you have an advanced license, you can use Find Identical or Delete Identical.



Both can be used to find/delete features that have identical attributes, or, if the Shape field is specified, identical geometries.


If you don't have an advanced license, this post will be useful.


In short, you add two fields for X,Y in your attribute table and run a Dissolve on said fields.


If you have polygons which share the same centroid, but are not geometrically identical, you can add two other fields (Perimeter and Area). That should be enough to identify identical geometries for almost all normal cases. See @whuber's comments below.


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...