Bug report #21456

python error whrn using "use layer extent" in Processing QGIS native tool

Added by Giovanni Manghi almost 2 years ago. Updated almost 2 years ago.

Affected QGIS version:3.4.5 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29273


AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'MeshLayer'
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ExtentSelectionPanel.py", line 167, in useLayerExtent
dlg = LayerSelectionDialog(self)
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ExtentSelectionPanel.py", line 72, in init
QgsMapLayerProxyModel.HasGeometry | QgsMapLayerProxyModel.RasterLayer | QgsMapLayerProxyModel.MeshLayer)
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'MeshLayer'

This has been seen when creating vector grid with the native QGIS tool.

This affects QGIS 3.4.5 but not above releases. Anyway I can't find a fix related to this bug with a "need backporting" label. This must be fixed in the LTR release too.

Associated revisions

Revision 541f0c01
Added by Nyall Dawson almost 2 years ago

[processing] Fix exception when picking extent from layer

Fixes #21456


#1 Updated by Nyall Dawson almost 2 years ago

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

Also available in: Atom PDF