[mapserver-commits] r12673 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Tue Oct 18 14:15:26 EDT 2011
Author: dmorissette
Date: 2011-10-18 11:15:26 -0700 (Tue, 18 Oct 2011)
New Revision: 12673
Modified:
trunk/mapserver/mapwfs.c
Log:
Add missing support for outputFormat in GetFeature POST XML requests (#4052)
Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c 2011-10-18 13:00:16 UTC (rev 12672)
+++ trunk/mapserver/mapwfs.c 2011-10-18 18:15:26 UTC (rev 12673)
@@ -3205,7 +3205,11 @@
if (pszValue)
wfsparams->nStartIndex = atoi(pszValue);
- /* free typname and filter. There may have been */
+ pszValue = xmlGetProp(rootnode, (xmlChar *)"outputFormat");
+ if (pszValue)
+ wfsparams->pszOutputFormat = msStrdup(pszValue);
+
+ /* free typename and filter. There may have been */
/* values if they were passed in the URL */
if (wfsparams->pszTypeName)
free(wfsparams->pszTypeName);
@@ -3412,11 +3416,16 @@
if (pszValue)
wfsparams->nMaxFeatures = atoi(pszValue);
- pszValue = CPLGetXMLValue(psGetFeature, "startIndex",
+ pszValue = CPLGetXMLValue(psGetFeature, "startIndex",
NULL);
if (pszValue)
wfsparams->nStartIndex = atoi(pszValue);
+ pszValue = CPLGetXMLValue(psGetFeature, "outputFormat",
+ NULL);
+ if (pszValue)
+ wfsparams->pszOutputFormat = msStrdup(pszValue);
+
psQuery = CPLGetXMLNode(psGetFeature, "Query");
if (psQuery)
{
More information about the mapserver-commits
mailing list