GeoJSON

GeoJSON概览

https://www.processon.com/mindmap/6224a2dc7d9c0836f90060a8

地理要素特征对象 -> Feature

{
  type: "Feature",
  "properties": {name: 'xxx'},
  "geometry": {
    {
      "type": "Point",
      "coordinates": [100.0, 0.0]
    }
  }
}

特征集合对象 -> FeatureCollection

  {
    "type": "FeatureCollection",
    "features": [

    ]
  }

coordinate

coordinate是一个数组,表示一个点的坐标,数组的长度表示坐标的维度,2维 or 3维

  • 2维: [lng, lat]
  • 3维:[lng, lat, height]

coordinates时多为数组

  • 点: [lng, lat]
  • 线:[[lng, lat],[lng, lat]]
  • 面(闭合):[[[lng, lat], [lng, lat], [lng, lat]]]
  • 多面:多面:[[[[lon, lat], [lon, lat]]]]

坐标参考系: EPSG:4326和EPSG:3857

  • EPSG:4326是WGS84即大地坐标系,是GeoJSON的默认坐标系
  • EPSG:3857是Web Mercator即墨卡托坐标系,是OpenLayers的默认坐标系

EPSG:4326和EPSG:3857之间的区别

  • EPSG:4326是经纬度坐标系,EPSG:3857是投影坐标系
  • EPSG:4326和EPSG:3857之间的坐标系范围不同
  • EPSG:4326和EPSG:3857之间的坐标原点不同
  • EPSG:4326的坐标单位是【度】,EPSG:3857的坐标单位是【米】
  • EPSG:4326的坐标轴方向【x,y】,EPSG:3857的坐标轴方向【x,-y】
posted @ 2024-02-04 18:33  Felix_Openmind  阅读(81)  评论(0)    收藏  举报
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}