我在将纬度和经度值转换为android esri arcGIS map Point时遇到了麻烦.这是我从GPS坐标获取纬度和经度值的代码:
LocationManager lm;
String towers;
double lat;
double longi;
TextView txt;
lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
Criteria crit = new Criteria();
towers = lm.getBestProvider(crit, false);
Location location = lm.getLastKnownLocation(towers);
if(location != null)
{
lat = location.getLatitude();
longi = location.getLongitude();
}
Run Code Online (Sandbox Code Playgroud)
现在我有纬度和经度值.现在我需要的是将这些值转换为有效的esri arcGIS MapPoint.谁能帮我?
提前致谢.