【问题标题】:How to add Polygon coordinates to an existing geoJSON file?如何将多边形坐标添加到现有的 geoJSON 文件?
【发布时间】:2019-09-03 18:41:48
【问题描述】:

尝试使用 Choropleth Leaflet 将 42 个国家的边界​​放置在地图上。显然,我只有每个国家的经纬度数据,而不是坐标列表。如何将多边形坐标添加到现有数据中?或者有没有我可以使用的 API?研究无助于我。

我的数据

      "type": "Feature",
      "properties": {
        "country": "Austria",
        "points": 89.19089810712848,
        "price": 31.192106322996377
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          13.199959,
          47.2000338
        ]
      }```

【问题讨论】:

    标签: leaflet polygon


    【解决方案1】:

    如果你需要粗略的国家边界坐标,你可以搜索“GeoJSON world”,有几个方便的来源。

    例如https://geojson-maps.ash.ms/https://github.com/simonepri/geo-mapshttps://github.com/johan/world.geo.json

    【讨论】:

      猜你喜欢
      • 2017-07-17
      • 2021-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-14
      相关资源
      最近更新 更多