Bug report #21112

"Zoom to layer" doesn't work as expected on WFS dataprovider when you have af provide feature filter applied to the datasource

Added by Bo Thomsen 12 months ago. Updated 12 months ago.

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

Description

If you have a wfs based datasource and applies a "provider feature filter" to the layer, the "zoom to layer" function only works the first time by zooming to the extend of filtered data.
After that, the function will zoom to the extend of the entire, unfiltered layer

Steps to reproduce:

1. Open the project "allesandro2.qgs" project

2. Right-click on the layer "v_greg_flader with filter" and choose "zoom to layer" (The v_greg_flader with filter" has a data provider filter applied). The mapper will zoom to the correct extend of the filtered data.

3. Now zoom out

4. Repeat no. 2. The "Zoom to layer" function now zooms to the extend of the entire, unfiltered layer.

alessandro2.qgs (63.5 KB) Bo Thomsen, 2019-01-26 07:42 PM


Related issues

Related to QGIS Application - Bug report #20742: Zoom to Layer does not respond to filtered WFS Closed 2018-12-06

History

#1 Updated by Bo Thomsen 12 months ago

This might be same problem reported in #20742

#2 Updated by Giovanni Manghi 12 months ago

#3 Updated by Even Rouault 12 months ago

  • Resolution set to duplicate
  • Status changed from Open to Closed

Also available in: Atom PDF