我现在的数据是WGS84坐标,我该如何把她转换成我现在图上的坐标?下面的代码可以吗?
MapInfo.Mapping.Map map = MapInfo.Engine.Session.Current.MapFactory [MainMap.MapAlias];
CoordSysFactory factory = Session.Current.CoordSysFactory;
CoordSys csysWGS84 = factory.CreateLongLat(DatumID.WGS84);
CoordSys csysRobinson = map.GetDisplayCoordSys();
CoordinateTransform transform = new CoordinateTransform(csysWGS84, csysRobinson);
DPoint pntDest = transform.CoordSys1ToCoordSys2(x);