【问题标题】:How to convert Shapefile to jVectormap?如何将 Shapefile 转换为 jVectormap?
【发布时间】:2015-05-24 22:30:55
【问题描述】:

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

我需要从下面的列表中选择一个国家:http://www.gadm.org/country 这里。

然后我必须将此文件转换为 jvectormap 地图文件。但是怎么做? 这是 jvectormap 如何希望地图坐标的示例:http://jvectormap.com/js/jquery-jvectormap-ch-mill-en.js

那么,如何将 shapefile 从 gadm.org 转换为 jvectormap?

【问题讨论】:

    标签: php json shapefile jvectormap


    【解决方案1】:

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

    jvectormap 网站上的文档详细解释了如何使用这个转换器:http://jvectormap.com/documentation/gis-converter/

    我自己没有尝试过,但它看起来有据可查。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-29
      • 1970-01-01
      • 2013-05-05
      相关资源
      最近更新 更多