Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2013 16:08
Show Gist options
  • Save anonymous/6242088 to your computer and use it in GitHub Desktop.
Save anonymous/6242088 to your computer and use it in GitHub Desktop.
Steps to take to convert a shape file to topo json
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