Tell me more ×
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'm looking for a tool which compares two vector files (eg shapefiles). Eg 2 versions of a river network. Quite a lot of the records are equal, but some are different. A possible output would be eg a shapefile with every geometry and 2 columns which refer to the id of the 2 original files, which can be missing if that geometry is not present in one of the files.

I'm thinking about a strategy to program this myself (basically creating a hashed version of the geometry of each part and compare those), but before rushing into programming (I even have a fancy name 'shapediff') I was wondering if such a tool already exists.

share|improve this question

3 Answers

I've had good results with this script: Change Detector

share|improve this answer
Just for a reference: this script does not work on arcgis 9.3, so no solution here unfortunately. – johanvdw Feb 11 '11 at 21:38
I wasn't aware this was 9.3 specific. The script is heavy on arcpy, but you could easily port this it to the 9.3 arcgisscripting way of doing things. The script doesn't do anything that is specific to 10. – Derek Swingley Feb 11 '11 at 21:48

Ok, I found a tool myself: http://www.obviously.com/gis/shpdiff/ - see if I can make it work.

share|improve this answer
I made some changes to make it compile, but it doesn't really do what I would like to do. I guess I'll write my own program. – johanvdw Feb 11 '11 at 21:36

There is a Feature Compare tool in the Data Management Tools > Data Comparison toolbox. Here is the link to the Desktop 10 help page. Script examples in Python is available at the bottom of the page.

I haven't used the tool myself (that I can remember anyway) so I'm not sure if it will generate the output you are looking for. Might be worth a look.

share|improve this answer
Thanks for reporting. But we've experienced many problems with this tool (only compared 234 records out of thousands). – johanvdw Jan 11 '11 at 18:33
Ah, I was not aware - you did not mention that you had used the tool in your original post. – Timothy Michael Jan 11 '11 at 19:07
Don't worry - I made my question general in the hope that it would be a reference for other people facing the same problem. – johanvdw Jan 11 '11 at 21:11

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.