小编use*_*781的帖子

将纬度和经度转换为esri arcGIS MapPoint

我在将纬度和经度值转换为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.谁能帮我?

提前致谢.

gps android esri arcgis

6
推荐指数
4
解决办法
9078
查看次数

标签 统计

android ×1

arcgis ×1

esri ×1

gps ×1