Skip to content

Commit

Permalink
WFS 1.1/2.0: do not write empty ows:WGS84BoundingBox element when lay…
Browse files Browse the repository at this point in the history
…er extent is unkown, which is non-conformant with WFS XML schema (fix #6170)
  • Loading branch information
rouault committed Oct 13, 2020
1 parent 2502fb3 commit 4a5bc7c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mapwfs11.cpp
Expand Up @@ -259,7 +259,6 @@ xmlNodePtr msWFSDumpLayer11(mapObj *map, layerObj *lp, xmlNsPtr psNsOws,
ext.minx, ext.miny,
ext.maxx, ext.maxy));
} else {
xmlNewChild(psRootNode, psNsOws, BAD_CAST "WGS84BoundingBox", NULL);
xmlAddSibling(psNode,
xmlNewComment(BAD_CAST "WARNING: Optional WGS84BoundingBox could not be established for this layer. Consider setting the EXTENT in the LAYER object, or wfs_extent metadata. Also check that your data exists in the DATA statement"));
}
Expand Down

0 comments on commit 4a5bc7c

Please sign in to comment.