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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Nov 15 00:08:54 PST 2012


Author: baertelchen
Date: 2012-11-15 00:08:54 -0800 (Thu, 15 Nov 2012)
New Revision: 7207

Modified:
   trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp
Log:
Fix CCoordinateSystemCategory::GetCoordinateSystems() to return *ALL* CS names, not just 1

The [CCoordinateSystemCategory::GetCoordinateSystems] method got changed due to the implementation of RFC127.
It's supposed to return all CS names contained in the respective category.

It did, however, only return the first CS name several times due to an incorrect loop.
Fixed by changing [0] to [i].

Reviewed by Hugues.

Modified: trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp
===================================================================
--- trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp	2012-11-14 10:51:24 UTC (rev 7206)
+++ trunk/MgDev/Common/CoordinateSystem/CoordSysCategory.cpp	2012-11-15 08:08:54 UTC (rev 7207)
@@ -379,7 +379,7 @@
     std::vector<STRING> const& allCsNames = this->GetAllCsNames();
     for(size_t i = 0; i < allCsNames.size(); ++i)
     {
-        pCsColl->Add(allCsNames[0]);
+        pCsColl->Add(allCsNames[i]);
     }
 
     MG_CATCH_AND_THROW(L"MgCoordinateSystemCategory.GetCoordinateSystems")



More information about the mapguide-commits mailing list