[mapguide-commits] r9574 - sandbox/jng/wfs_hits/Web/src/HttpHandler
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Jul 14 06:21:48 PDT 2019
Author: jng
Date: 2019-07-14 06:21:48 -0700 (Sun, 14 Jul 2019)
New Revision: 9574
Modified:
sandbox/jng/wfs_hits/Web/src/HttpHandler/WfsGetFeatureParams.cpp
Log:
Make sure hit mode detection is also checked/toggled for XML request bodies
Modified: sandbox/jng/wfs_hits/Web/src/HttpHandler/WfsGetFeatureParams.cpp
===================================================================
--- sandbox/jng/wfs_hits/Web/src/HttpHandler/WfsGetFeatureParams.cpp 2019-07-13 12:02:18 UTC (rev 9573)
+++ sandbox/jng/wfs_hits/Web/src/HttpHandler/WfsGetFeatureParams.cpp 2019-07-14 13:21:48 UTC (rev 9574)
@@ -141,6 +141,7 @@
, m_filterStrings(new MgStringCollection())
, m_featureTypeList(new MgStringCollection())
, m_pNamespaces(new MgXmlNamespaceManager())
+, m_hitMode(false)
{
MgXmlParser parser(xmlRequestString.c_str());
MgXmlNamespaceManager oNamespaces;
@@ -186,6 +187,15 @@
if(pBegin->GetAttribute(_("outputFormat"), sOutputFormat) && sOutputFormat.length() > 0)
m_outputFormat = oServer.ProcessArgumentAs(_("OutputFormat"),sOutputFormat.c_str());
+ // Try to set hit mode flag (only if WFS version != 1.0.0 as it was only introduced from 1.1.0 onwards)
+ if (m_version != L"1.0.0")
+ {
+ STRING sResultType;
+ if (pBegin->GetAttribute(_("resultType"), sResultType) && sResultType.length() > 0)
+ {
+ m_hitMode = (sResultType == L"hits");
+ }
+ }
// We want to hang onto the namespaces that are
// defined in the GetFeature request, since that will
More information about the mapguide-commits
mailing list