Android arcGIS地图投影

问题描述:

我在Android应用程序中使用ArcGIS API。我之前使用过Google API。有一个投影计算,其有可能在谷歌API象下面这样:Android arcGIS地图投影

Projection projection = map.getProjection(); 
     Point p = new Point(); 
     projection.toPixels(gp, p);//gp is a geoPoint computed earlier. 

问题:是否有任何在ArcGIS API相似?

我在ArcGIS文档中看到了GeometryEngine.project(point p, spatialReference sr1, spatialReference sr2)方法。但不知道如何使用它来获得与上面类似的计算。我应该使用什么spatialReference来获取像素坐标?

您正在寻找toScreenPoint()和toMapPoint()在com.esri.android.map

http://resources.arcgis.com/en/help/android-sdk/api/reference/com/esri/android/map/MapView.html#toScreenPoint(com.esri.core.geometry.Point)

MapView类的方法