一、AE地理坐标和屏幕坐标互转
(1)地理坐标转屏幕坐标
pPoint.PutCoords(x, y);//x,y地理坐标
pActiveView.ScreenDisplay.DisplayTransformation.FromMapPoint(pPoint, out x, out y);// x,y为long类型
另:Server ADF开发中,ESRI.ArcGIS.ADF.Web.Geometry.ToScreenPoint(Envelope,Int32,Int32);
方法说明(C#):public Point ToScreenPoint(Envelope extent,int imageWidth,int imageHeight);
返回值:Screen-point (pixel-point) of converted map Point.
注意:该方法没有考虑地图旋转,所以不推荐使用,最好用ToScreenPoint(TransformationParams)代替转换;
(2)屏幕坐标转地理坐标
pPoint=pActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(x, y);// x,y为屏幕坐标