I would like to write some c# code to delete duplicate rows from a shapefile stored in a folder.
Can anyone provide me with an example or pointers on the best way to attempt this, please?
|show 3 more comments|
To remove duplicate geometry with different fid you may use an algorithm like:
To get features based on location you may use following code snippent:
Code snippet for getting all features of a layer:
Code snippet for getting features based on query from a layer:
I have a python code to delete duplicate geometry..
If you want I can provide the entire code (author name: Gerry Gabrisch). (I forgot from where I download it, but works fine with shape file).
Now just convert this shape file tp featureclass and open this using Access and find out those duplicate records and delete those..