Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a whole lot of polygon shape files, many of which have got duplicate nodes. This makes processing difficult as almost all tools (erase, union, calculate area) do not work.

I found that by removing duplicate nodes from the 'offending' polygons the shape files become usable. However there are well over a hundred shape files and going through all of these is a nightmare.

Is it possible to automate the process using ArcPy or VB? If it is possible, how can it be done? If not, are there any free libraries in .NET (C# or VB.NET) or Python that can be used to perform this task?

Thank you.

PS:
I tried the python shape file library (http://code.google.com/p/pyshp) but I found that when it is done removing the duplicate nodes, ArcMap is still unable to handle the shape files, giving the same errors as before.

share|improve this question
2  
Have you tried repair geometry? It's documented to remove dup vertices in shapefiles. resources.arcgis.com/en/help/main/10.1/index.html#//… –  T. Wayne Whitley Nov 17 '12 at 14:06
    
@T.WayneWhitley: I tried that tool and it works very well. Thank you. Can you write your comment as an answer so I accept it? Thanks. –  Alex Essilfie Nov 18 '12 at 18:29
add comment

1 Answer

up vote 4 down vote accepted

Repair Geometry is documented to remove duplicate vertices in shapefiles, see: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000003v000000

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.