Bug report #17863

Zoom to layer has inconsistent behavior with filter

Added by Kory Roberts over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:Unknown
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25758

Description

Apply filter to existing layer. Click "Zoom to layer". Save project file, close, and reopen. Click "Zoom to layer". Zoom now changes behavior as if there is no filter at all.

Tested with Spatialite layer and Shapefile.

Associated revisions

Revision e9c9b5df
Added by Alessandro Pasotti over 2 years ago

[bugfix][ogr] Update extent when subsetstring is set in the ctor

Fixes #17863 - Zoom to layer has inconsistent behavior with filter

Revision cd0559df
Added by Alessandro Pasotti over 2 years ago

[bugfix][spatialite] Update extent when subsetstring is set in the ctor

Fixes #17863 - Zoom to layer has inconsistent behavior with filter

History

#1 Updated by Alessandro Pasotti over 2 years ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti over 2 years ago

Interesting: geopackage is not affected but spatialite and shpefile are ....

#3 Updated by Alessandro Pasotti over 2 years ago

  • Pull Request or Patch supplied changed from No to Yes
  • Status changed from Open to In Progress

This was indeed a problem with extent and feature count not being updated on (ogr and spatialite) filtered layers when they were created.
See PR https://github.com/qgis/QGIS/pull/6173

#4 Updated by Anonymous over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

#5 Updated by Giovanni Manghi over 2 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF