[mapguide-commits] r6168 - trunk/MgDev/Common/CoordinateSystem

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Oct 7 04:36:18 EDT 2011


Author: baertelchen
Date: 2011-10-07 01:36:18 -0700 (Fri, 07 Oct 2011)
New Revision: 6168

Modified:
   trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp
Log:
Fix ticket 1826 (http://trac.osgeo.org/mapguide/ticket/1826).

The CCoordinateSystemTransform::TransformCoordinate() implementation method returned X,X,X instead of X,Y,Z for coordinates of type [MgCoordinateDimension::XYZ]. Fixed that to

coordinate->SetX(dCoords [0]);
coordinate->SetY(dCoords [1]);
coordinate->SetZ(dCoords [2]);

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp	2011-10-05 14:45:22 UTC (rev 6167)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysTransform.cpp	2011-10-07 08:36:18 UTC (rev 6168)
@@ -477,8 +477,8 @@
             CriticalClass.Leave();
         }
         coordinate->SetX(dCoords [0]);
-        coordinate->SetY(dCoords [0]);
-        coordinate->SetZ(dCoords [0]);
+        coordinate->SetY(dCoords [1]);
+        coordinate->SetZ(dCoords [2]);
     }
     else if(coordinate->GetDimension() == (MgCoordinateDimension::XY | MgCoordinateDimension::M))
     {



More information about the mapguide-commits mailing list