Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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
up vote 5 down vote accepted

Do you know shpdiff which depends on shapelib? It's not Python but works similar to diff. You can get it from here:

Some years ago I wrote a blog post about it.

share|improve this answer
This sounds promising! – LarsVegas May 1 '14 at 8:16

Your Answer


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.