Bug report #22053

Filter on WFS only filters on title field

Added by Jonathan Moules 6 months ago. Updated 6 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:Web Services clients/WFS
Affected QGIS version:3.4.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29867

Description

I leave it open whether this is a bug or a feature request. It's definitely sub-optimal in its current state.

1) Connect to a WFS. I.e. http://ogc.geo-ide.developpement-durable.gouv.fr/wxs?map=%2Fopt%2Fdata%2Fcarto%2Fgeoide-catalogue%2F1.4%2Forg_38102%2F2f3f11f0-91c9-479a-b748-ed1098603e91.internet.map&version=2.0.2

2) In the filter field, type something that's only in the "name" field. For example the number "2".

You will see no results despite this being in the layer name. It seems the filter only searches layer titles, which is a problem because not all layers have titles (Name is the only mandatory field).

Solutions:
Simple: Search all fields
Complex: Have checkboxes (all checked by default) allowing the user to specify which fields to search.

History

#1 Updated by Jonathan Moules 6 months ago

This bug also applies to ArcGIS Map Server filtering. It's WORSE for ArcGIS, because of https://issues.qgis.org/issues/22055
I suspect it applies to GeoNode and ArcGIS Feature Server too as they have the same filter by the looks of it.

Also available in: Atom PDF