arcgis平面米转度方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bitree1/article/details/82148896

1方法1:

这个工具可以转换坐标,但是不能换投影系统,比如可以2000平面转2000经纬度,如果要2000平面转84经纬度,需要输入转换参数。

方法2:

使用arcgis 的geometry project方法 分别输入输出坐标系和gemetry值

方法3:https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.projection-amd.html#project

代码调用arcgis 的API 

// Project each polygon in the array. project() will use the spatial
// reference of the first geometry in the array as an input spatial
// reference. It will use the default transformation. If one is required
// when converting from input spatial reference to the output spatial reference.
var outSpatialReference = new SpatialReference({
 wkid: 53008 //Sphere_Sinusoidal
});

polygonGraphics.forEach(function(graphic) {
  graphic.geometry = projection.project(graphic.geometry, outSpatialReference);
});

猜你喜欢

转载自blog.csdn.net/bitree1/article/details/82148896