1. 程式人生 > >arcgis for android經緯度座標轉換成投影座標

arcgis for android經緯度座標轉換成投影座標

下面是實現將經緯度座標轉換成投影座標的方法

 double locy = loc.getLatitude();

double locx = loc.getLongitude();
Point wgspoint = new Point(locx, locy);
Point mapPoint = (Point) GeometryEngine
.project(wgspoint,
SpatialReference.create(4326),
map.getSpatialReference());