migurski / Dymo

Map label placer with simulated annealing.
148 stars 17 forks source link

add flag for auto SHP creation #10

Open nvkelso opened 12 years ago

nvkelso commented 12 years ago

GeoJSON is nice, but SHP is more portable.

If ogr2ogr is present:

Note: ogr2ogr won't replace an existing file, so remove them, and in the clean make sure that dir exists

rm -f shp/z2-labels.* shp/z2-points.* ogr2ogr -f "ESRI Shapefile" shp/z2-labels.shp geojson/z2-labels.json ogr2ogr -f "ESRI Shapefile" shp/z2-points.shp geojson/z2-points.json

In the general Makefile,

clean: mkdir -p shp

nvkelso commented 12 years ago

with the -overwrite flag on.