【问题标题】:EPSG:3857 coordinates system compatibility with Azure MapsEPSG:3857 坐标系统与 Azure Maps 的兼容性
【发布时间】:2021-12-21 09:10:21
【问题描述】:

EPSG:3857 坐标系统是否与 Azure Maps 兼容?我正在处理一些需要在 Azure 地图上加载 geoJson 但无法正确识别坐标的项目。相同的 geoJson 正在其他地图提供者(如 qGIS 和 Ordenance Survey)上产生所需的输出。

【问题讨论】:

  • 至少在我们的项目中,我们只测试了 EPSG:4326 的功能。在地图上显示之前,您可以转换成这个吗?
  • 我们已经在后端将 EPSG:27700(英国国家电网)转换为 EPSG:3857。如果我得到任何确认 EPSG:3857 坐标输入不受支持,那么我们将不得不将其仅转换为 EPSG:4236。

标签: reactjs azure azure-maps epsg


【解决方案1】:

EPSG:3857 由引擎盖下的地图渲染引擎使用,但与大多数其他 Web 地图 SDK 一样,数据输入需要在 EPSG:4326 中。请注意,GeoJSON 的规范要求坐标为 EPSG:4326。使用其他坐标会使 GeoJSON 文件无效且不符合规范。

也就是说,Azure Maps 中的数学库确实提供了用于在 EPSG:3857 (web Mercator) 和 EPSG:4326 (WGS 84) 之间转换坐标的计算。

https://docs.microsoft.com/en-us/javascript/api/azure-maps-control/atlas.math?view=azure-maps-typescript-latest#mercatorPixelsToPositions_Pixel____number_

https://docs.microsoft.com/en-us/javascript/api/azure-maps-control/atlas.math?view=azure-maps-typescript-latest#mercatorPositionsToPixels_Position____number_

【讨论】:

  • 非常感谢 :)
猜你喜欢
  • 2016-09-28
  • 2021-12-23
  • 2020-04-06
  • 2019-06-04
  • 2022-08-22
  • 1970-01-01
  • 1970-01-01
  • 2021-12-18
相关资源
最近更新 更多