Bug report #18095

Grass algorithm outputs do not correctly work within models

Added by Alister Hood about 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/GRASS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25991

Description

"Extract layer extent" does not work in processing model in master if input layer is also a "final result".
The attached model is a simple test case. Try changing it so the output of v.to.rast is not a "final result", and everything will work!

Prepare algorithm: qgis:polygonfromlayerextent_2
Running Extract layer extent [2/2]
Input Parameters:
{ INPUT: , OUTPUT: 'memory:' }
Traceback (most recent call last): File "/usr/share/qgis/python/plugins/processing/algs/qgis/ExtentFromLayer.py", line 96, in processAlgorithm fields, QgsWkbTypes.Polygon, layer.crs()) AttributeError: 'NoneType' object has no attribute 'crs' 

model.model3 (9.04 KB) Alister Hood, 2018-02-14 04:09 AM

History

#1 Updated by Nyall Dawson about 6 years ago

  • Category changed from Processing/QGIS to Processing/GRASS
  • Subject changed from "Extract layer extent" does not work in processing model in QGIS 3 if input layer is also a "final result" to Grass algorithm outputs do not correctly work within models

Specific to GRASS algorithms only.

#2 Updated by Nyall Dawson over 5 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Fixed in 3.3

Also available in: Atom PDF