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

 

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