Skip to content

Instantly share code, notes, and snippets.

@caseycesari
Last active December 15, 2015 06:19
Show Gist options
  • Save caseycesari/5215112 to your computer and use it in GitHub Desktop.
Save caseycesari/5215112 to your computer and use it in GitHub Desktop.
Get the latest version of the Azavea Neighborhoods shapefile and convert it to topojson.
Neighborhoods_Philadelphia.shp:
git clone git@github.com:azavea/geo-data.git
touch geo-data/Neighborhoods_Philadelphia/Neighborhoods_Philadelphia.shp
neighborhoods.json: Neighborhoods_Philadelphia.shp
ogr2ogr -f "GeoJSON" -t_srs "EPSG:4326" neighborhoods.json geo-data/Neighborhoods_Philadelphia/Neighborhoods_Philadelphia.shp
neighborhoods-topo.json: neighborhoods.json
topojson -o neighborhoods-topo.json --id-property NAME neighborhoods.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment