Skip to content
Permalink
Browse files

Merge pull request #34425 from mhugent/wfs_layer_output_format

WFS: support all GetFeature output formats for all layers
  • Loading branch information
mhugent committed Feb 12, 2020
2 parents e6c9378 + ad3db5e commit 2f50c0acb3f7fd5906febc1fc7da40c851341f79
@@ -579,14 +579,6 @@ namespace QgsWfs

layerElem.appendChild( operationsElement );

//create OutputFormats element
QDomElement outputFormatsElem = doc.createElement( QStringLiteral( "OutputFormats" ) );
QDomElement outputFormatElem = doc.createElement( QStringLiteral( "Format" ) );
QDomText outputFormatText = doc.createTextNode( QStringLiteral( "text/xml; subtype=gml/3.1.1" ) );
outputFormatElem.appendChild( outputFormatText );
outputFormatsElem.appendChild( outputFormatElem );
layerElem.appendChild( outputFormatsElem );

//create WGS84BoundingBox
QgsRectangle layerExtent = layer->extent();
//transform the layers native CRS into WGS84
@@ -96,9 +96,6 @@ Content-Type: text/xml; charset=utf-8
<Operation>Update</Operation>
<Operation>Delete</Operation>
</Operations>
<OutputFormats>
<Format>text/xml; subtype=gml/3.1.1</Format>
</OutputFormats>
<ows:WGS84BoundingBox dimensions="2">
<ows:LowerCorner>8.203459 44.901394</ows:LowerCorner>
<ows:UpperCorner>8.203547 44.901483</ows:UpperCorner>

0 comments on commit 2f50c0a

Please sign in to comment.
You can’t perform that action at this time.