arcgis平面米转度方法

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);
});

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章