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