November 2017
Beginner to intermediate
298 pages
6h 47m
English
Mike Bostock provides an excellent tutorial on simplification, and how it works, at http://bost.ocks.org/mike/simplify/.
Basically, it is a way to reduce geometric complexity through line-simplification algorithms. For example, if you do not need much detail in a very jagged coast of a country, you can apply line-simplification algorithms to smooth out the jaggedness and significantly reduce the size of the TopoJSON file. The command-line parameter you use is -s to adjust the simplification in the TopoJSON simplification:
toposimplify -s 1e-9 -f < spain.json > spain-topo.json
We typically realize that when dealing with shapefiles from DIVA-GIS, the best range is around 7e-7 to keep within the per-pixel threshold, which is less ...
Read now
Unlock full access