[QGIS-Developer] Raster calculator issues

Giovanni Manghi giovanni.manghi at gmail.com
Tue Jul 25 04:05:24 PDT 2017


Hi,



> hi all,
>
>
> I'm using qgis 2.18.10 (code59e0f78) installed from repo in my Ubuntu 17.04.
>
> I have problem with raster calculators algorithms. In particular:
>
>   *   saga (2.3.1) raster calculator - it gives me this error, both using this algorithm in a process and alone:
>
> Error executing algorithm reservoir_effective 'module' object has no attribute 'TYPE_RASTER' See log for more details


this has been fixed. it was something affecting all saga tools with a
multiple input raster layer option. If you install the qgis
2.18-nightly it should be ok.






>
>   *   gdal/ogr raster calculator - it gives this error:
>
> GDAL command output:
>
> Error! Dimensions of file /home/condivisa_A_E/calcoli/1000_ET_pos.tif (600, 562) are different from other files (473, 562). Cannot proceed
>
>   *   r.mapcalc - it doesn't show a filed to set the name of the output file, but only the folder. However it gives this error on the console: ERROR 4: /home/IGG/condivisa_A_E/calcoli/1000_ET_pos.tif;/home/layer_prodotti_da_caricare/Z90_ly.tif: No such file or directory


this is not a QGIS/Processing issue, but a gdal raster calculator limit, see:

http://www.gdal.org/gdal_calc.html

"...Note that all files must have the same dimensions, but no
projection checking is performed"





> The only algorithm currently running seems to be the raster calculator of gdal available as first item in the raster menu.


that actually is the native qgis raster calculator and not the gdal one.


I think that the most unfortunate thing is that we "lost" the GRASS
r.mapcalculator tool in processing, that was available in grass6* but
was not ported to grass7. That was python script based on the powerful
r.mapcalc, that made its use pretty easy. An effort to add r.mapcalc
to Processing/grass7 has been done, but the last time I checked it
wasn't working great, especially on Windows.

cheers!

-- G --


More information about the QGIS-Developer mailing list