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