我想要通过Android esri arcGIS MapView获取纬度和经度。如何将Android esri arcGIS Point转换为经度和纬度
map.setOnSingleTapListener(new OnSingleTapListener() {
private static final long serialVersionUID = 1L;
public void onSingleTap(float x, float y) {
System.out.println("x:" + x);
System.out.println("y:" + y);
// How to get Latitude Longitude coordinates of the point (x,y)?
}
});
如何获取点(x,y)的纬度经度坐标?
如果我使用此代码,我没有得到确切的经度和纬度值。 – NandaKumar
如果你想使用WGS84,给你经纬度,你需要做一个投影你的观点。例如:'SpatialReference sp = SpatialReference.create(/ * spatial number * /); \t \t点AUX =(点)GeometryEngine.project(P, \t \t \t \t map.getSpatialReference(),SP);'。您可以在http://spatialreference.org/ –
搜索您的空间参考感谢,曼努埃尔皮雷斯我得到答案 – NandaKumar