Bug report #20742

Zoom to Layer does not respond to filtered WFS

Added by Lars Ellebjerg about 6 years ago. Updated almost 6 years ago.

Status:Closed
Priority:High
Assignee:Even Rouault
Category:Web Services clients/WFS
Affected QGIS version:3.4.2 Regression?:Yes
Operating System:Win 7 Pro SP1 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:28562

Description

When using Zoom to Layer on a filtered WFS QGIS zooms to the entire layer, not to the ones in the map.

In my case I have filtered 'fkg:t_5710_born_skole_dis' url='https://fkg.mapcentia.com/wfs/kom167@fkg/fkg/25832' version='auto' table="" sql=SELECT * FROM t_5710_born_skole_dis where kommunekode = 167 by the municipality code = 167, but when using Zoom to Layer all of Denmark is displayed.


Related issues

Related to QGIS Application - Bug report #21112: "Zoom to layer" doesn't work as expected on WFS dataprovi... Closed 2019-01-26
Duplicated by QGIS Application - Bug report #21328: Filtered WFS-Layer saves changes to other Features Feedback 2019-02-20

Associated revisions

Revision 32d90287
Added by Even Rouault almost 6 years ago

[WFS provider] Correctly compute layer extent when zooming out layer (fixes #20742)

Revision 8834ec78
Added by Even Rouault almost 6 years ago

[WFS provider] Correctly compute layer extent when zooming out layer (fixes #20742)

History

#1 Updated by Giovanni Manghi about 6 years ago

  • Status changed from Open to Feedback

Does it works as expected on 2.18?

#2 Updated by Lars Ellebjerg about 6 years ago

Yes, 2.18 zooms to the elements which are included in the map.

#3 Updated by Giovanni Manghi about 6 years ago

  • Regression? changed from No to Yes
  • Priority changed from Normal to High
  • Status changed from Feedback to Open

#4 Updated by Giovanni Manghi almost 6 years ago

  • Related to 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

#5 Updated by Even Rouault almost 6 years ago

  • Assignee set to Even Rouault

#6 Updated by Even Rouault almost 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

#7 Updated by Alessandro Pasotti almost 6 years ago

  • Duplicated by Bug report #21328: Filtered WFS-Layer saves changes to other Features added

Also available in: Atom PDF