arcgis 安卓 Mapview.getScale() 获取当前比例尺 不准确 误差大怎么解决
arcgis测量长度 / 地图当前比例尺 != 物理尺子测量长度
arcgis-android使用的版本号为100.5.0
arcgis测量长度,使用的是GeometryEngine的API:
public static double lengthGeodetic(Geometry geometry, LinearUnit lengthUnit, GeodeticCurveType curveType)
参数分别为
1、Polyline对象
2、new LinearUnit(LinearUnitId.METERS)
3、GeodeticCurveType.GEODESIC
地图当前比例尺,使用的是MapView的API:
public double getMapScale()
arcgis-android使用的版本号为100.5.0
arcgis测量长度,使用的是GeometryEngine的API:
public static double lengthGeodetic(Geometry geometry, LinearUnit lengthUnit, GeodeticCurveType curveType)
参数分别为
1、Polyline对象
2、new LinearUnit(LinearUnitId.METERS)
3、GeodeticCurveType.GEODESIC
地图当前比例尺,使用的是MapView的API:
public double getMapScale()
1 个回复
张赛
赞同来自:
2 其次,当前的比例级别的获取和手机本身的DPI,PPI直接相关,需要对应反算
要回复问题请先登录或注册