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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Feb 15 21:33:41 EST 2011


Author: liuar
Date: 2011-02-15 18:33:41 -0800 (Tue, 15 Feb 2011)
New Revision: 5553

Modified:
   trunk/MgDev/Web/src/HttpHandler/WfsGetFeatureParams.cpp
Log:
Ticket #1602 WFS GetFeature with Http post doesn't support GML2 output format.

The output format parameter(GML2 and GML3) for GetFeature request is not standard output format defined by OGC, which should be text/xml; subtype=gml/2.1.2 and text/xml; subtype=gml/3.1.1. 

For HTTP get, MapGuide translates the non-standalized parameter to standalized one by ProcessArgumentAs() in RequestParameter().

It is also needed for HTTP post to translate these parameters.

Modified: trunk/MgDev/Web/src/HttpHandler/WfsGetFeatureParams.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/WfsGetFeatureParams.cpp	2011-02-15 23:25:01 UTC (rev 5552)
+++ trunk/MgDev/Web/src/HttpHandler/WfsGetFeatureParams.cpp	2011-02-16 02:33:41 UTC (rev 5553)
@@ -177,7 +177,7 @@
 
             STRING sOutputFormat;
             if(pBegin->GetAttribute(_("outputFormat"), sOutputFormat) && sOutputFormat.length() > 0)
-                m_outputFormat = sOutputFormat;
+                m_outputFormat = oServer.ProcessArgumentAs(_("OutputFormat"),sOutputFormat.c_str());
 
 
             // We want to hang onto the namespaces that are



More information about the mapguide-commits mailing list