I often use the GNU diff tool to compare two files or even two folders for differences. I was wondering if there is a Python based tool out there that does basically the same for shapefiles?

In the first place I am interested in attribute comparison but to find also the differences in geometry would be very handy.

Maybe someone has a script at hand I could adopt from?

I do not have access to ArcGIS so it needs to be a Python standalone solution.

  • 1
    Have you had a look here and here? The "Changedetector" Python script (for ArcGIS) may be what you're looking for, but I don't know if it would work as a standalone without ArcGIS. – Simbamangu May 1 '14 at 7:52

Do you know shpdiff which depends on shapelib? It's not Python but works similar to diff. You can get it from here: http://uwmike.com/maps/shapefiles/shpdiff.c

Some years ago I wrote a blog post about it.

  • This sounds promising! – LarsVegas May 1 '14 at 8:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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