My personal blog is: www.ourd3js.com
CSDN Blog for: blog.csdn.net/lzhlzz
Reprint please indicate the source, thank you.
The GeoJSON file was used when making a map of China. Later I found that the file was too large for 2,364 KB, and of course this ensures that the map is accurate, but we don't usually need that exact boundary, so it's necessary to narrow it down. Fortunately, there have been predecessors to do this work, really walnuts, posterity, here to express our thanks.
Conversion method:
1. Open Web site
http://mapshaper.org/
2. Click Select to choose the GeoJSON file to reduce
3. Slide the simplify scroll bar to change the zoomed-out ratio.
4. There are three kinds of output modes in the upper right corner, click on GeoJSON on the line.
The previous section of the China.json file is simplified: China_simplify.json, after all, the boundary section does not need to be that precise. The current size is KB, which is only equivalent to 1/15 of the original.
Results please click: http://www.ourd3js.com/demo/chinamap_simplify.html
"D3.js Starter Series---10.1" simplifies GeoJSON files