-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[modeler] r.cost named outputs are not passed as input to following algs #36379
Comments
test_r_cost.zip |
r.cost ouptut are set as: QgsProcessingParameterRasterDestination in r.cost.txt |
This is an issue in the grass provider -- it's incorrectly just returning the parameter value for the OUTPUT parameter, when it should be returning the path to the file it actually generated. |
locations as the algorithm results, don't just echo back the parameter value Otherwise we don't return the correct value for temporary file locations or for file paths during model execution Fixes qgis#36379
tnx |
locations as the algorithm results, don't just echo back the parameter value Otherwise we don't return the correct value for temporary file locations or for file paths during model execution Fixes #36379
I found the same issue with r.null. When used within the graphical modeler, its output name is correctly pased to the GDAL raster calculator only if the output is not named. When I name the output the entry parameters for the GDAL:rastercalculator show an empty input A, as Input A: " ". |
@asierrl attach the model |
Sorry, I didn't know even how to do it. Is a Zip file OK? |
@asierrl can you kindly provide also some sample input data? |
Sure, @gioman, this is the trial dataset I've been using to test the model. |
confirmed on 3.16.1, should this be reopened? @luipir @nyalldawson |
Describe the bug
In modeler if r.cost output is set with a named output (as in the attached model), the ouptut is not passed as input to the following alg.
If named ouput is removed, then the temporary ouput is correctly passed to the next alg.
How to Reproduce
Run the attached alg => "Could not load source layer for INPUT_RASTER: invalid value"
because INPUT_RASTER is empty:
Running Reclassify by table [2/2]
Input Parameters:
{ DATA_TYPE: 1, INPUT_RASTER: '', NODATA_FOR_MISSING: False, NO_DATA: -9999, OUTPUT: 'TEMPORARY_OUTPUT', RANGE_BOUNDARIES: 1, RASTER_BAND: 1, TABLE: [0,1000,0,1000,10000,1] }
remove "cumulative_cost" out variable from model and run again successfully
QGIS and OS versions
Additional context
Need at last merge o #36371 before to allow use grass output algs in modeler
The text was updated successfully, but these errors were encountered: