Feature request #3728

WFS with Filter Encoding

Added by Sfkeller - about 6 years ago. Updated over 1 year ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:Marco Hugentobler % Done:

100%

Category:WFS Client
Target version:Future Release - Nice to have
Platform:All Resolution:fixed/implemented
Platform version: Pull Request or Patch supplied:No
Status info:0 Tag:

Description

Many WFS Server support some Filter Encoding options.

From a client implementation point of view its only adding a KVP parameter (&Filter=value) in the Get Feature request, where a value is a valid Filter Encoding XML ("<Filter>...</Filter>").

From a GUI perspective, this value could be entered by the user in the modal dialog "Add WFS Layer..." and then stored along the WFS data source parameters.

History

Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Médéric RIBREUX over 1 year ago

  • Category changed from WMS Client to WFS Client
  • Status changed from Open to Closed
  • % Done changed from 0 to 100
  • Resolution set to fixed/implemented
  • Pull Request or Patch supplied set to No

Hello, bug triage...

WFS filters are enabled in QGIS 2.13 master WFS client. There is a Query Builder button to open an expression builder to build the filter. The filter is really applied on the server level and not on QGIS side because it is described into the WFS query as you can see in the layer source string:

http://ws.carmencarto.fr/WFS/119/fxx_inpn?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Znieff2&SRSNAME=EPSG:2154&FILTER=<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
 <ogc:PropertyIsGreaterThan>
  <ogc:PropertyName>ID_MNHN</ogc:PropertyName>
  <ogc:Literal>230031027</ogc:Literal>
 </ogc:PropertyIsGreaterThan>
</ogc:Filter>

The query builder can't show the attributes values from the server so you have to know your filter before. But once written, the layer is filtered on the server side.

So, I am closing this bug.

Also available in: Atom