Skip to content

Generate geojson files for Echarts Map,base on mapshaper(Echarts 地图数据压缩转换)

Notifications You must be signed in to change notification settings

yancongwen/mapshaper-plus

This branch is 6 commits behind giscafer/mapshaper-plus:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

748e110 · Feb 3, 2017

History

10 Commits
Jun 3, 2016
Feb 3, 2017
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016
Jun 3, 2016

Repository files navigation

mapshaper-plus

Generate geojson files for Echarts Map,base on mapshaper

基于mapshaper对geojson地图数据的坐标信息进行压缩编码,并提供可直接生成压缩编码后的echarts map数据格式

通过mapshaper-plus可以直接将shp格式数据转换为压缩后的echarts数据

Demo

http://giscafer.com/mapshaper-plus/

Description

介绍 ——mapshaper可以将多种数据格式(Shapefile, GeoJSON, TopoJSON 和 Zip files)导入后,对地图的编辑和导出(Shapefile, GeoJSON, TopoJSON, DSV, SVG),功能强大和简单易用。

mapshaper-plus是在mapshaper基础上拓展对地图坐标信息的压缩编码,很大程度上减小了文件的代码行数和字节大小:譬如一个贵州省的数据,原始的geojson数据会在30M左右,但在对坐标信息压缩编码后,仅为1.4M

背景 ——在做echarts图表统计时,需要自制地图数据,但官方没有提供一个平台可以直接将shp文件转化为压缩后的jsonjs格式的地图文件,而mapshaper导出的json数据没有压缩,数据量过大。

使用可以访问mapshaper-plus在线demo

Screenshot

导出压缩版的数据

License

mapshaper is licensed under MPL 2.0. and mapshaper-plus is licensed under MIT.

Blog giscafer.com  ·  GitHub @giscafer  ·  Weibo @Nickbing Lao

About

Generate geojson files for Echarts Map,base on mapshaper(Echarts 地图数据压缩转换)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • CSS 1.1%
  • HTML 0.7%