double lat=this.fileGpsConnection.Latitude;
double lon=this.fileGpsConnection.Longitude;
if(!(lat>=-90&&lat<=90))return;
if(!(lon>=-180&&lon<=180))return;
ESRI.ArcGIS.Mobile.SpatialReferences.SpatialReference spatialReference=
.SpatialReference;
ESRI.ArcGIS.Mobile.Geometries.Coordinate coordinate=spatialReference.FromWgs84(lon,lat);
gpsLocation=new ESRI.ArcGIS.Mobile.Geometries.Point(coordinate);
this.map.CenterAt(coordinate);
转载于:https://www.cnblogs.com/j3eee/archive/2009/02/26/1398411.html
本文介绍了如何使用ESRI.ArcGIS库将WGS84坐标系下的经纬度坐标转换为特定的空间参考坐标,并在地图上进行定位。通过判断经纬度的有效范围,利用ArcGIS的SpatialReference对象从WGS84坐标转换到目标坐标系,然后创建Point对象用于地图中心的定位。
2772

被折叠的 条评论
为什么被折叠?



