Modeler issues with output and input #27817
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Easy fix
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Author Name: al ray (al ray)
Original Redmine Issue: 19995
Affected QGIS version: 3.2.3
Redmine category:processing/modeller
Greetings
I'm trying to run a model and the output of an element doesn't get treated as an input.
I am using a mask to extract part of a raster, since the default output is a tif and I want another file format, so I changed the output.
For the next tool: Zonal Statistic, I want to use the output of the previous tool as the raster input. The input is linked to the mask output but when it comes the time to run the algorithm it doesn't work since the input is empty.
Here is the log:
Running Zonal statistics [3/3]
Input Parameters:
{ COLUMN_PREFIX: 'MZ_', INPUT_RASTER: '', INPUT_VECTOR: 'C:/Users/utilisateur/Desktop/DOCS impo/lstm_rivers/shapefiles/Zbv1_d1.shp', RASTER_BAND: 1, STATS: 5 }
Traceback (most recent call last):
File "C:/PROGRA
1/QGIS31.2/apps/qgis/./python/plugins\processing\algs\qgis\ZonalStatistics.py", line 132, in prepareAlgorithmself.raster_interface = rasterLayer.dataProvider().clone()
AttributeError: 'NoneType' object has no attribute 'dataProvider'
Error encountered while running Zonal statistics
Error encountered while running Zonal statistics
Batch execution completed in 13.66 seconds
I'm not sure if this is an oversight for this tool but the extract by location and clip tool seem to provide the proper input.
Thanks
The text was updated successfully, but these errors were encountered: