Permalink
Browse files

WFS: deal with multiple <Query> in a stored query

  • Loading branch information...
rouault committed Nov 9, 2013
1 parent f8bc861 commit 3b092a3832c3618da9c947f3eeba6031a1c800b1
Showing with 9 additions and 1 deletion.
  1. +9 −1 mapwfs.c
View
@@ -4316,6 +4316,7 @@ static int msWFSAnalyzeStoredQuery(mapObj* map,
{
CPLXMLNode* psRoot;
CPLXMLNode* psQuery;
CPLXMLNode* psIter;
psRoot = CPLParseXMLString(pszResolvedQuery);
@@ -4336,7 +4337,14 @@ static int msWFSAnalyzeStoredQuery(mapObj* map,
return MS_FAILURE;
}
msWFSParseXMLQueryNode(psQuery, wfsparams);
psIter = psQuery;
while( psIter != NULL )
{
if( psIter->eType == CXT_Element && strcmp(psIter->pszValue, "Query") == 0 ) {
msWFSParseXMLQueryNode(psIter, wfsparams);
}
psIter = psIter->psNext;
}
CPLDestroyXMLNode(psRoot);

0 comments on commit 3b092a3

Please sign in to comment.