Feature request #14120

Implement Better Filtering for WFS layers

Added by Jeremy Palmer about 1 year ago.

Status:Open Start Date:01/16/2016
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:WFS Client
Target version:Version 2.14
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

It would be good to completely re-implement the current WFS client filtering logic to something similar to what the OGR WFS driver does. Currently WFS filters are created using the QGIS expression builder, which then transforms the filter to OGC XML during the layer setup. This current approach which has a couple of issues:

  • translating the expression to OGC XML often fails as many QGIS expression functions can not be translated to OGC equivalents. This is not clear to the user
  • once the layer is created you can't go back and change the filter.

IMHO it would be easier to set a provider filter using query builder using SQL and then transform that SQL to OGC XML, much like what GDAL/OGR does - see http://www.gdal.org/drv_wfs.html. This would also be a better option if a WFS 2.0 client was implemented in the case of join syntax.

Also available in: Atom