下面是实现将经纬度坐标转换成投影坐标的方法
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());
本文介绍了一种将地理坐标系中的经纬度坐标转换为地图投影坐标的方法。通过获取点的纬度和经度,创建了一个表示地理位置的Point对象。接着使用GeometryEngine的project方法将该Point对象从WGS84坐标系(SpatialReference 4326)转换到所需的地图坐标系。
下面是实现将经纬度坐标转换成投影坐标的方法
double locy = loc.getLatitude();
double locx = loc.getLongitude();
4828

被折叠的 条评论
为什么被折叠?