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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Nov 29 15:45:16 EST 2010


Author: NormOlsen
Date: 2010-11-29 12:45:16 -0800 (Mon, 29 Nov 2010)
New Revision: 5414

Modified:
   trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp
Log:
Trac #1543  -- Activate use of CS-MAP function CS_gxchk() for checking the validity of Geodetic Transformation definitions.

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp	2010-11-29 19:46:07 UTC (rev 5413)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp	2010-11-29 20:45:16 UTC (rev 5414)
@@ -340,17 +340,11 @@
     if (!params->IsValid())
         return false;
 
-    //TODO: would we also need to check, whether the datum(s) exists?
-
-    /*
     CriticalClass.Enter();
-    //TODO: pass correct parameters; make sure, CS_gxchk checks all stuff
-    int nNumErrs = CS_gxchk(this->transformDefinition, 0, NULL, 0);
+    int nNumErrs = CS_gxchk(this->transformDefinition,cs_GXCHK_DATUM, NULL, 0);
     CriticalClass.Leave();
 
     return (0 == nNumErrs);
-    */
-    return true;
 }
 
 //helper - don't delete



More information about the mapguide-commits mailing list