[mapguide-commits] r7633 - sandbox/adsk/2.4j/Server/src/Services/Feature

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Jun 19 21:52:38 PDT 2013


Author: christinebao
Date: 2013-06-19 21:52:38 -0700 (Wed, 19 Jun 2013)
New Revision: 7633

Modified:
   sandbox/adsk/2.4j/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: sandbox/adsk/2.4j/Server/src/Services/Feature/TransformCache.cpp
===================================================================
--- sandbox/adsk/2.4j/Server/src/Services/Feature/TransformCache.cpp	2013-06-19 15:04:24 UTC (rev 7632)
+++ sandbox/adsk/2.4j/Server/src/Services/Feature/TransformCache.cpp	2013-06-20 04:52:38 UTC (rev 7633)
@@ -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