Saturday 25 June 2016

Convert GeoJSON to TopoJSON



How do you convert GeoJSON data to TopoJSON?


Why


Topojson files are often smaller than geojson and the conversion allows you to incrementally simplify a dataset, if you wish.



Answer




Glad you asked, oh handsome OP.


Install topojson


From the command line (Mac OSX 10.8, assumes homebrew installed):


brew install node.js
npm install -g topojson

Convert The Data


topojson -o output.json input.json

No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...