"D3.js Starter Series---10.1" simplifies GeoJSON files

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.