4

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.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
LarsVegas
  • 2,536
  • 3
  • 30
  • 47
  • 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 01 '14 at 07:52

1 Answers1

5

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.

webrian
  • 2,171
  • 14
  • 13