I need to convert a geojson file to topojson and possibly simplify the topojson file. I've managed to install Node.js and the topojson package. But I have no idea how to run topojson.
The wiki lists a bunch of command line options, but where do I run those commands? I've tried running them both in the command prompt and the node shell. Node, GDAL, ogr2ogr and TopoJSON are all new concepts for me, so I'm a bit confused and overwhelmed.
I'm running on Windows by the way.
topojson
executable is now changed to geo2topo
topojson
geo2topo -o topo-output.json geo-input.json
One way to obtain geo-input.json
is from gdal
which takes a shape file as input and outputs geojson. gdal can be installed via home brew using brew install gdal