Bug report #18880

[Processing] "Extract layer extent" should not blindly trust layer extent information

Added by Harrissou Santanna over 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Processing/QGIS
Affected QGIS version:3.1(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 #:26712

Description

I have a PostgreSQL layer with a wrong extent (not all the features are shown when zooming to layer - see #18879).
Running the "Extract layer extent" on it generates a new layer covering the wrong extent. I guess it's because it uses the extent information in the layer metadata instead of generating one beforehand.
Btw, maybe we can have a new algorithm that simply updates the layer extent (which will be called in this case but can be handy for models also)

Also available in: Atom PDF