[mapguide-commits] r7634 - trunk/MgDev/Server/src/Services/Feature

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Jun 19 22:04:57 PDT 2013


Author: christinebao
Date: 2013-06-19 22:04:57 -0700 (Wed, 19 Jun 2013)
New Revision: 7634

Modified:
   trunk/MgDev/Server/src/Services/Feature/TransformCache.cpp
Log:
#2258: Serve WFS in alternate CS: SRSNAME not respected in getfeature, alternate SRS not available
Transform from data source CS to map CS is only used when generate WFS feature, and the transform should not been cached.

Modified: trunk/MgDev/Server/src/Services/Feature/TransformCache.cpp
===================================================================
--- trunk/MgDev/Server/src/Services/Feature/TransformCache.cpp	2013-06-20 04:52:38 UTC (rev 7633)
+++ trunk/MgDev/Server/src/Services/Feature/TransformCache.cpp	2013-06-20 05:04:57 UTC (rev 7634)
@@ -165,7 +165,10 @@
                 if (srcCs.p)
                 {
                     item = new TransformCache(new MgCSTrans(srcCs, dstCs), srcCs);
-                    cache[srcwkt] = item;
+                    if (reverse)
+                    {
+                        cache[srcwkt] = item;
+                    }
 
                     // Set the coordinate system transform
                     Ptr<MgCoordinateSystemTransform> trans;



More information about the mapguide-commits mailing list