版權聲明:本文為部落客原創文章,未經部落客允許不得轉載。 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);
});
将不定期更新資源,歡迎持續關注
想獲得更多的學習知識請關注微信公衆号:西北碼農或掃下方二維碼