Bug report #10238
SAGA algorithms doesn't work in Modeler QGIS 2.2
|Affected QGIS version:||2.2.0||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 #:||18677|
I am using Modeler in QGIS 2.2 and it gives me an error when I use SAGA algorithms. The error is:
Oooops! The following output layers could not be open
The above files could not be opened, which probably indicates that they were not correctly produced by the executed algorithm
Checking the log information might help you see why those layers were not created as expected.
GRASS algorithms are working well but SAGA doesn't. I am using Grids Sum algorithm.
Hope you help me.
#7 Updated by Giovanni Manghi almost 6 years ago
- Target version changed from Version 2.2 to Version 2.4
The issue seems to be that in the modeller the output (SAGA) raster is not defined, example:
Prepare algorithm 0: Grids sum
Running Grids sum [1/1]
Parameters: GRIDS =None
grid_calculus "Grids Sum" -RESULT "/tmp/processing/e6a09432c0804993946df728166697b0/RESULTALG0.tif.sgrd"
io_gdal 1 -GRIDS "/tmp/processing/e6a09432c0804993946df728166697b0/RESULTALG0.tif.sgrd" -FORMAT 1 -TYPE 0 -FILE "/tmp/processing/e6a09432c0804993946df728166697b0/RESULTALG0.tif"
The value for the option 'GRIDS' must be specified.
while not in the modeller it is, example
Algorithm Grids sum starting...
io_gdal 0 -TRANSFORM -INTERPOL 0 -GRIDS "/tmp/processing/080eff9823d64507951a9bc8d38b7f70/slope.sgrd" -FILES "/home/giovanni/Desktop/CIMAL/projectos_qgis/fauna/dados/rasters/slope.tif"
io_gdal 0 -TRANSFORM -INTERPOL 0 -GRIDS "/tmp/processing/b08ab0e104e14a60b05d44a9d6bfbc13/demclipped.sgrd" -FILES "/home/giovanni/Desktop/amlei/dados/raster/dem/dem_clipped.tif"
grid_calculus "Grids Sum" -GRIDS "/tmp/processing/080eff9823d64507951a9bc8d38b7f70/slope.sgrd;/tmp/processing/b08ab0e104e14a60b05d44a9d6bfbc13/demclipped.sgrd" -RESULT "/tmp/processing/d202709121084932b93b30906c18285a/RESULT.tif.sgrd"
io_gdal 1 -GRIDS "/tmp/processing/d202709121084932b93b30906c18285a/RESULT.tif.sgrd" -FORMAT 1 -TYPE 0 -FILE "/tmp/processing/d202709121084932b93b30906c18285a/RESULT.tif"
#9 Updated by Giovanni Manghi almost 6 years ago
Barbara Duarte wrote:
Is there a way to use SAGA algorithms through Modeler?
If there is a bug this must be fixed. Once fixed a new updated version of the toolbox can be immediately shipped as plugin update. If you are in a hurry to have a fix then you can hire one of the developers. If you are in Portugal you can drop me a line.