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 Layeron the input feature class specified by the user to outputOutput_FLGet Countto count the number of rows within the feature class- Create a variable
counterand initialise to 0 - Add a
Whileiterator wherecounter < row count Select Layer by AttributeonOutput_FLto create aNEW_SELECTIONwhereOBJECTID=counterSelect Layer by LocationonOutput_FLwhere the relationship isARE_IDENTICAL_TOSelect Layer by AttributeonOutput_FLtoREMOVE_FROM_SELECTIONwhereOBJECTID=counterDelete FeaturesfromOutput_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