Created
March 25, 2015 18:26
-
-
Save bmschmidt/f3020b4ebfbe57a578d3 to your computer and use it in GitHub Desktop.
Historical Shapefiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $@ $< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This assumes you've put the Newberry shapefiles in a folder called "shapefiles"