Let's say that you somehow have a layer that has multiple features for a certain field value. And you only want one geographic feature for each value in this field. Maybe from multiple Merges. Anyway, now you want to get rid of the duplicate features. If the dataset is large, you don't want to manually select duplicates. That involves too much work and possibility for human error. After doing some Googling, I found this handy ESRI HowTo page:
HowTo: Identify Duplicate field values
This supplies python code for the field calculator and instructions. After creating a new field, the code outputs a 1 for duplicates and a 0 for the other records. Now you can "select by attributes" to select duplicates, switch selection, and export data that will now have no duplicates. Very handy when dealing with layers that have thousands of features. Thanks ESRI!
No comments:
Post a Comment