您的位置:首页 > 移动开发 > Android开发

Android arcgis 坐标转经纬度

2016-05-12 21:23 351 查看
down
vote
If you want to convert map point to lat/long you just need to follow this

Point mapPoint = mMapView.toMapPoint(point.getX(), point.getY());
//Here point is your MotionEvent point
SpatialReference spacRef = SpatialReference.create(4326);
//4326 is for Geographic coordinate systems (GCSs)
Point ltLn = (Point)
GeometryEngine.project(mapPoint,mMapView.getSpatialReference(), spacRef );
//mMapView is your current mapview object


ltLn.getY()
will
give latitude and
ltLn.getX()
will
give longitude

这是esri.SpatialReference函数中的属性,wkid即well-known ID(定义好的) ,4326代表地理坐标系中的GCS_WGS_1984 ,这个可以在arcgis的帮助中查看
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: