Skip to content

Instantly share code, notes, and snippets.

@tristen
Last active March 9, 2021 20:07
Show Gist options
  • Save tristen/4597594 to your computer and use it in GitHub Desktop.
Save tristen/4597594 to your computer and use it in GitHub Desktop.
topojson merge
ogr2ogr \
-f GeoJSON \
subunits.json \
nameofshapefile.shp
ogr2ogr \
-f GeoJSON \
boundaries.json \
nameofshapefile.shp
# Finally with our two converted json files:
topojson \
--id-property su_a3 \
-p NAME=name \
-p name \
-s 10 \
-o world.json \
subunits.json \
boundaries.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment