小编Sha*_*gta的帖子

一组多边形的外封套

我有一个包含多个多边形的 GeoJson 文件。像这样的东西。

在此处输入图片说明

我使用 Leaflet 在网站中呈现这个 GeoJson。
我想围绕包围所有多边形的多边形绘制轮廓。像这样的东西。 在此处输入图片说明

我正在使用的 GeoJSOn 格式:

{
"features": [
  {
    "geometry": {
      "coordinates": [
        [
          [
            1074.426,
            -1136.986
          ],
          [
            1088.241,
            -1123.171
          ]
        ]
      ],
      "type": "Polygon"
    },
    "properties": {
      "number": "2009",
      "type": "",
      "spaceid": null,
      "alias": null,
      "roomkey": "5/2009"
    },
    "type": "Feature"
  }
],
"bbox": [
  2445.578,
  2445.578
],
"crs": {
  "properties": {
    "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
  },
  "type": "name"
},
"type": "FeatureCollection"
Run Code Online (Sandbox Code Playgroud)

}

任何指针都会有帮助:)谢谢

javascript polygon geojson leaflet turfjs

3
推荐指数
1
解决办法
1527
查看次数

标签 统计

geojson ×1

javascript ×1

leaflet ×1

polygon ×1

turfjs ×1