[mapguide-commits] r5486 - trunk/MgDev/Web/src/HttpHandler

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Dec 27 21:17:46 EST 2010


Author: liuar
Date: 2010-12-27 18:17:46 -0800 (Mon, 27 Dec 2010)
New Revision: 5486

Modified:
   trunk/MgDev/Web/src/HttpHandler/WmsMapUtil.cpp
Log:
Fix an potential issue for multiple Bounds defined for WMS layers.

Make sure all Bound formats are like <Bounds SRS="EPSG:4326" west="-87.74" south="43.68" east="-87.69" north="43.815"/>

Modified: trunk/MgDev/Web/src/HttpHandler/WmsMapUtil.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/WmsMapUtil.cpp	2010-12-28 01:48:18 UTC (rev 5485)
+++ trunk/MgDev/Web/src/HttpHandler/WmsMapUtil.cpp	2010-12-28 02:17:46 UTC (rev 5486)
@@ -471,7 +471,7 @@
     // Example: <Bounds SRS="EPSG:4326" west="-87.74" south="43.68" east="-87.69" north="43.815"/>
     Ptr<MgStringCollection> bounds = new MgStringCollection();
     int pos = 0;
-    while(layerBounds.find(L"<Bounds",pos) != STRING::npos)
+    while((pos = layerBounds.find(L"<Bounds",pos)) != STRING::npos)
     {
         pos += 7; // pos+7 to the first character after <Bounds
         int endPos = layerBounds.find(L"/>",pos); 



More information about the mapguide-commits mailing list