Arcgis操作系列1 - 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);
});

将不定期更新资源,欢迎持续关注

想获得更多的学习知识请关注微信公众号:西北码农或扫下方二维码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值