如何将Shapefile转换为jVectormap?

时间:2015-05-24 13:26:19

标签: php json shapefile jvectormap

我正在为我的学期项目做点什么。

我需要从以下列表中选择一个国家:http://www.gadm.org/country此处。

然后我必须将此文件转换为jvectormap映射文件。但是怎么样? 以下是jvectormap如何想要地图坐标的示例:http://jvectormap.com/js/jquery-jvectormap-ch-mill-en.js

那么,我该怎么做才能将shapefile从gadm.org转换为jvectormap?

1 个答案:

答案 0 :(得分:1)

看起来jvectormap项目有一个可供您使用的转换器脚本。它应该能够转换shapefile(.shp)。您可以在他们的github存储库中找到python转换器脚本:https://github.com/bjornd/jvectormap/blob/master/converter/converter.py

jvectormap网站上的文档详细说明了如何使用此转换器:http://jvectormap.com/documentation/gis-converter/

我自己没有尝试过,但看起来它的记录很好。