Bug report #11968

WFS-GetFeature broken (with "caching" unchecked)

Added by Benjamin Schepers over 9 years ago. Updated about 8 years ago.

Category:Web Services clients/WFS
Affected QGIS version:2.6.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20175


I'm using the latest QGIS 2.6.1 and don't get get the features from a WFS, when caching is unchecked in the wfs loader.
If caching was checked everything seems to work well.

Analyzing the server-site requests gave the following results from the logs:

WITH Cache-Features checked:


WITHOUT Cache-Features:


GetCapabilities worked well in both scenarios; with Caching unchecked, the BBOX parameter appears (seems alright), but the REQUEST-Parameter is wrong (GetCapabilities instead of GetFeature!)
=> the QUERY-String on the clientside is composed in a wrong way, with Parameter "caching" unchecked!

Please have a look at this


Related issues

Related to QGIS Application - Bug report #13117: cached wfs not downloading new features while panning Closed 2015-07-15


#1 Updated by Giovanni Manghi over 9 years ago

  • Category set to Web Services clients/WFS
  • Status changed from Open to Feedback

duplicate of #9444 ?

#2 Updated by Jukka Rahkonen over 9 years ago

Not a duplicate. In this case client is generating invalid requests. Also the DescribeFeatureType is wrong but I suppose that the extra BBOX parameter that should not be there is just skipped by the WFS server.

#3 Updated by Benjamin Schepers over 9 years ago

I'm using QGIS 2.6.1 for Windows; always WFS in "non-Cache-mode".

The Errors (GetCapabilities instead of GetFeature) occured while testing against a QGIS-Server, latest Debian-build from QGIS-Sources.
The same Errors while using WFS occured with a different dataset from UMN Mapserver (self-compiled 6.4.1).

Testing those Services with ArcGIS and older QGIS 2.0.1 (Windows) they worked well.
Things become stranger now: the same "buggy" Client (2.6.1) works well against a GeoServer (no Version Information nor any Server-logs, Sorry).

IMHO there seem some things to be broken on the Client-side.

#4 Updated by Giovanni Manghi over 9 years ago

  • Status changed from Feedback to Open

#5 Updated by Giovanni Allegri about 9 years ago

I've justed on QGIS 2.8.1 and master. Both seems to request features correctly, but the bbox is disregarded (code seems commented) maybe because of some related problems not yet fixed (as Marco said on qgis-dev list)

#6 Updated by Giovanni Manghi almost 9 years ago

  • Target version changed from Version 2.8 to Version 2.8.2

#7 Updated by Giovanni Manghi almost 9 years ago

  • Target version changed from Version 2.8.2 to Version 2.10

#8 Updated by Benjamin Schepers almost 9 years ago

The problems decribed above existed also with QGIS 2.8.x. and always GeoServer (from the same Infrastructure) automagically worked very well...

Thankfully WFS (non-Cache Mode) seems to generally work in 2.10 (tested with OSGeo4W-Release) against QGIS-Server and UMN-MapServer.
But from now on the BBOX of an added layer is immutable, so the wfs-layer in non-cach-mode doesn't get updated on panning the map (and though changing the bbox) - with all three kinds of OS-WFS-Servers (QGIS-Server, UMN-MapServer and GeoServer).

#9 Updated by Giovanni Manghi over 8 years ago

  • Target version deleted (Version 2.10)

#10 Updated by Benjamin Schepers about 8 years ago

  • Status changed from Open to Closed

it seems, that this was fixed in master 188625c

I hope, this will come to 2.14: https://github.com/qgis/QGIS/commits/master/src/providers/wfs/qgswfsprovider.cpp

Also available in: Atom PDF