[Qgis-user] qgisserver for publishing external WFS

Richard Duivenvoorde rdmailings at duif.net
Mon Feb 1 04:00:05 PST 2021


On 2/1/21 12:09 PM, Richard Duivenvoorde wrote:

> Did you try? 
> - just create a QGIS project pointing to a Geoserver WFS
> - save that project to a QGIS-server and see if it serves?
> Did that fail?

Mmm, I did myself. And if you ask me you hit a bug... :-(

It appears that 'cascading' just works for at least WMS.

BUT... cascading my test WFS fails because it looks like it 'rewrites' the returned GML, resulting in invalid xml/gml

IF the original features had a 'namespace' (in my case: test:provincies), apparently QGIS adds  it's own namespace  (qgs:) to it, resulting in
invalid xml (not more then one ':' is allowed), AND making the gml at unreadable for OGR/GDAL (while it reports the right layers, it cannot read the featureMembers: (see the "qgs:test:provincies" parts):

<gml:featureMember>
 <qgs:test:provincies gml:id="test:provincies.3">
  <gml:boundedBy>
   <gml:Envelope srsName="EPSG:28992">
    <gml:lowerCorner>72132.8 359038.7</gml:lowerCorner>
    <gml:upperCorner>200852 426854.1</gml:upperCorner>
   </gml:Envelope>
  </gml:boundedBy>
  <qgs:geometry>
   <MultiPolygon xmlns="http://www.opengis.net/gml" srsName="EPSG:28992">
    <polygonMember xmlns="http://www.opengis.net/gml">
     <Polygon xmlns="http://www.opengis.net/gml">
      <exterior xmlns="http://www.opengis.net/gml">
       <LinearRing xmlns="http://www.opengis.net/gml">
        <posList xmlns="http://www.opengis.net/gml" srsDimension="2">200191.5 399580.1 200258.9 399250.3 200144.6 398823.5 200090 398221 200188 397887.5 200345.8 397471.3 200590 397074.4 200852 396850.7 200731.2 396765.2 200604 396884.7 200499.7 396829.7 200563.4 396699.9 200317.9 396630.7 200086.5 396746.2 199758.4>
       </LinearRing>
      </exterior>
     </Polygon>
    </polygonMember>
   </MultiPolygon>
  </qgs:geometry>
  <qgs:fid>11</qgs:fid>
  <qgs:PROVC>30</qgs:PROVC>
  <qgs:PROVC_NM>Noord-Brabant</qgs:PROVC_NM>
  <qgs:INW_T>2373569</qgs:INW_T>
 </qgs:test:provincies>
</gml:featureMember>
<gml:featureMember>

I created an issue for it:

https://github.com/qgis/QGIS/issues/41292

Regards,

Richard Duivenvoorde





More information about the Qgis-user mailing list