Skip to content

Instantly share code, notes, and snippets.

@Rich-Harris
Forked from anonymous/gist:6242088
Created August 15, 2013 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rich-Harris/6242109 to your computer and use it in GitHub Desktop.
Save Rich-Harris/6242109 to your computer and use it in GitHub Desktop.
steps from huge shape file to topo json:
topojson -q 1e3 --id-property ELECT_DIV national-esri-16122011/COM20111216_ELB_region.shp -o aussieMapTopoFromShp.json
/* -q 1e3 */ //This is the quality/simplification property, the lower the number the lower the quality
/* --id-property ELECT_DIV */ //This copies over the ELECT_DIV property from the shape file to the topoJSON file
//national-esri-16122011/COM20111216_ELB_region.shp //This is the input shape file
// -o //Output flag (put this before specifying the output file)
//aussieMapTopoFromShp.json //This is the output topo json file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment