[Qgis-developer] Inconsistent WFS layer requests

Thomas Colley it087 at neath-porttalbot.gov.uk
Tue Mar 8 03:23:49 PST 2016


I am trying to troubleshoot a problem we're having with a WFS service in QGIS 2.14. I am loading in a layer with 'Only request features overlapping the current view extent' and have tried cached and uncached. The layer loads only 1 feature and that is not within the map canvas. I have used Wireshark to capture the requests and can see that QGIS is making the GetFeature request with no bbox parameter and a maxfeatures parameter set to 1.

In QGIS 2.12.2 the GetFeature request with no bbox and maxfeatures=1 is still made but then it is followed up with another GetFeature request with the correct bbox and all features are loaded onto the layer as expected. I am wondering if the maxfeatures=1 request is a probe to test that valid features are being returned before making the proper request but in 2.14 the proper request never gets sent. Looking at the layer metadata in QGIS the layer source shows the correct request URL.

It's confusing as we have other WFS services which are working fine in 2.14. If I can narrow the issue down to being a problem with the service itself I can approach the supplier.

It's a commercial WFS but if anyone is able to test I can provide the connection URL.

Below are details of the packets being sent from QGIS.

Thanks very much


WFS connection string:

Layer source from Layer Properties > Metadata tab > Properties

Requests sent when adding WFS layer (caught by Wireshark):


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160308/2540595a/attachment.html>

More information about the Qgis-developer mailing list