如何使用空间参考 wkid:102100 将纬度和经度坐标转换为 x 和 y

How can I convert latitude and longitude coordinates to x and y with spatial Reference wkid:102100

有什么方法可以将纬度和经度坐标转换为具有空间参考的 x 和 y wkid:102100?

您可以使用 proj4js 包将坐标从 4326 (lat/long) 转换为 3857(以前称为 102100)。 EPSG:4326 和 EPSG:3857 已在此库中定义。

proj4(proj4('EPSG:4326'),proj4('EPSG:3857'),[2,5]);