Bug report #9608

QGIS reads all features to calculate layer extent

Added by Alvaro Huarte almost 11 years ago. Updated almost 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Vectors
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18185

Description

Now QGIS always reads all features of a layer to calculate the extent when the layer is opened.
It is very slow for big layers.

See:
#500116bfe337760a21a6c34ac16073eba5fefe40#diff-106be592650b55ccae79c83eecd15cebR1691

Re-enabling this code, the layer fetch the extent from provider:

QgsRectangle mbr = mDataProvider->extent();
setExtent( mbr );

Associated revisions

Revision a1ada3c5
Added by Jürgen Fischer almost 11 years ago

vector layer: fix lazy extent calculation (fixes #9608; introduced in 500116bfe)

History

#1 Updated by Giovanni Manghi almost 11 years ago

  • Category changed from Browser to Vectors

Is this a regression?

#2 Updated by Alvaro Huarte almost 11 years ago

Giovanni Manghi wrote:

Is this a regression?

I think so

#3 Updated by Giovanni Manghi almost 11 years ago

  • Priority changed from High to Severe/Regression

#4 Updated by Jürgen Fischer almost 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF