java ADF 如何将平面坐标转换为经纬度
public void getIdentity(MapEvent exent) {
WebContext ctx = exent.getWebContext();
WebPoint point = (WebPoint)exent.getWebGeometry();
point = (WebPoint)point.toMapGeometry(ctx.getWebMap());
double x=point.getX();
double y=point.getY();
}
此时x,y的值为1070714.3326015235,3765220.3168944316,这应该是平面坐标
WebSpatialReference ws=exent.getWebGeometry().getSpatialReference().getWebSpatialReference((int)esriSRGeoCSType.esriSRGeoCS_NAD1983);
WebPoint point1=(WebPoint)point.project(ws);
double jd=point1.getX();
double wd=point1.getY();
logger.debug("经度:"+jd);
logger.debug("纬度:"+wd);