maxogden/shp2geocouch — pull request #5 by mattwigway (2011-10-15 06:02:30+00:00)
Title: Use ID from Shapefile

I added the -i option, which takes as an argument the column name of a unique ID column in the Shapefile. It then uses those IDs to set the CouchDB _id attribute. This is especially useful when a dataset is frequently updated; then the IDs can remain the same, rather than being new Couch UUIDs. I haven't tested what it does if you specify a non-unique column, one that contains nulls, or one that doesn't exist.