I am creating a model to remove features which are duplicated within a polygon feature class. Most of the features are duplicated once, but about a quarter have up to three or four exact copies. I do not have ArcInfo, so I cannot use Delete Identical
.
My model should contain the following:
Make Feature Layer
on the input feature class specified by the user to outputOutput_FL
Get Count
to count the number of rows within the feature class- Create a variable
counter
and initialise to 0 - Add a
While
iterator wherecounter < row count
Select Layer by Attribute
onOutput_FL
to create aNEW_SELECTION
whereOBJECTID
=counter
Select Layer by Location
onOutput_FL
where the relationship isARE_IDENTICAL_TO
Select Layer by Attribute
onOutput_FL
toREMOVE_FROM_SELECTION
whereOBJECTID
=counter
Delete Features
fromOutput_FL
- Increment counter
I have finished all the steps except step 9. I am not sure where/how I should increment the counter. I'm also not sure if I should put a Copy Features
tool somewhere before the while
loop as a backup mechanism since this model will be modifying the input data, and not everyone will make a backup of their data before running the model.
Answer
You should try this, Add XY coordinates to your featureclass, then Dissolve on the X,Y fields. This should remove your stacked, duplicate features. You can then join the attributes from your source file. You may need to concatenate X,Y to form a single field for the join.
No comments:
Post a Comment