Skip to content

Instantly share code, notes, and snippets.

@bmschmidt
Created March 25, 2015 18:26
Show Gist options
  • Save bmschmidt/f3020b4ebfbe57a578d3 to your computer and use it in GitHub Desktop.
Save bmschmidt/f3020b4ebfbe57a578d3 to your computer and use it in GitHub Desktop.
Historical Shapefiles
layers = $(subst .shp,.topojson,$(subst shapefiles/,topojson/,$(wildcard shapefiles/*.shp)))
all: $(layers)
topojson/%.json: shapefiles/%.shp
ogr2ogr -f GeoJSON $@ $<
topojson/%.topojson: topojson/%.json
topojson -s .000001 -p -o $@ $<
@bmschmidt
Copy link
Author

This assumes you've put the Newberry shapefiles in a folder called "shapefiles"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment