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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Sep 15 17:49:09 EDT 2009


Author: NormOlsen
Date: 2009-09-15 17:49:09 -0400 (Tue, 15 Sep 2009)
New Revision: 4224

Modified:
   trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp
Log:
This fixes the ticket 1092
http://trac.osgeo.org/mapguide/ticket/1092

A valid input like 18SUJ2337106511 should return a longitude/latitude position but instead the API returns NULL

The implementation code:

MgCoordinate* CCoordinateSystemMgrs::ConvertToLonLat(CREFSTRING sMgrs)

never returns the MgCoordinate object when there's a success.  This has been fixed


Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp	2009-09-15 20:27:30 UTC (rev 4223)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysMgrs.cpp	2009-09-15 21:49:09 UTC (rev 4224)
@@ -254,6 +254,10 @@
                 return NULL;
             }
         }
+		else
+		{
+			return pLonLat;
+		}
     }
 
     //if exception mode is on and excetion is thrown internally we exit anyway



More information about the mapguide-commits mailing list