[Qgis-developer] Processing disappeared from QGIS master?

Victor Olaya volayaf at gmail.com
Tue Jan 20 02:44:19 PST 2015


No problem. Actually, that "None" version shouldn't appear, i ahve
added a small fix to improve that version detection

The error you are getting seems to be caused by SAGA believing that a
layer is already exported, so it is not calling the export routines
before calling the algorithm itself. I had seen this before, and I
have now added a fix for it.

All this changes are applied in this commit

https://github.com/qgis/QGIS/commit/e9228b67c934f4eaeae0beb8a033916f5317318f

Hope this helps

2015-01-20 7:50 GMT+01:00 Paolo Cavallini <cavallini at faunalia.it>:
> Il 19/01/2015 22:47, Victor Olaya ha scritto:
>> If you are running linux, there should be no path to select, that's
>> normal. It looks like it finds no saga in your system, maybe it is
>> making a wrong call when trying to find out the installed version.
>
> Hi Victor,
> sorry, my mistake, sorry for the noise. However, now running saga throws
> an error.
> All the best, and thanks.
>
> SAGA execution console output
> Error: Grid file could not be opened.
> Error: input file
> [/tmp/processing/590b940599c64f3ab5054d672a250297/dtm.sgrd]
> Error: Elevation
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libta_morphometry
> library     :   Morphometry
> tool        :   Slope, Aspect, Curvature
> author      :   O.Conrad (c) 2001
> processors  :   4 [4]
> ____________________________
>
> Load grid: /tmp/processing/590b940599c64f3ab5054d672a250297/dtm.sgrd...
> failed
>
> Usage: saga_cmd ta_morphometry 0 -ELEVATION <str> [-SLOPE <str>]
> [-ASPECT <str>] [-C_GENE <str>] [-C_PROF <str>] [-C_PLAN <str>] [-C_TANG
> <str>] [-C_LONG <str>] [-C_CROS <str>] [-C_MINI <str>] [-C_MAXI <str>]
> [-C_TOTA <str>] [-C_ROTO <str>] [-METHOD <str>] [-UNIT_SLOPE <str>]
> [-UNIT_ASPECT <str>]
> -ELEVATION:<str>        Elevation
> Grid (input)
> -SLOPE:<str>            Slope
> Grid (output)
> -ASPECT:<str>           Aspect
> Grid (output)
> -C_GENE:<str>           General Curvature
> Grid (optional output)
> -C_PROF:<str>           Profile Curvature
> Grid (optional output)
> -C_PLAN:<str>           Plan Curvature
> Grid (optional output)
> -C_TANG:<str>           Tangential Curvature
> Grid (optional output)
> -C_LONG:<str>           Longitudinal Curvature
> Grid (optional output)
> -C_CROS:<str>           Cross-Sectional Curvature
> Grid (optional output)
> -C_MINI:<str>           Minimal Curvature
> Grid (optional output)
> -C_MAXI:<str>           Maximal Curvature
> Grid (optional output)
> -C_TOTA:<str>           Total Curvature
> Grid (optional output)
> -C_ROTO:<str>           Flow Line Curvature
> Grid (optional output)
> -METHOD:<str>           Method
> Choice
> Available Choices:
> [0] maximum slope (Travis et al. 1975)
> [1] maximum triangle slope (Tarboton 1997)
> [2] least squares fitted plane (Horn 1981, Costa-Cabral & Burgess 1996)
> [3] 6 parameter 2nd order polynom (Evans 1979)
> [4] 6 parameter 2nd order polynom (Heerdegen & Beran 1982)
> [5] 6 parameter 2nd order polynom (Bauer, Rohdenburg, Bork 1985)
> [6] 9 parameter 2nd order polynom (Zevenbergen & Thorne 1987)
> [7] 10 parameter 3rd order polynom (Haralick 1983)
> Default: 6
> -UNIT_SLOPE:<str>       Slope Units
> Choice
> Available Choices:
> [0] radians
> [1] degree
> [2] percent
> Default: 0
> -UNIT_ASPECT:<str>      Aspect Units
> Choice
> Available Choices:
> [0] radians
> [1] degree
> Default: 0
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/e42f70bc0aa64d2398a3516251b52381/SLOPE.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/54c709d08eb743a3a2023b874ba1ab78/ASPECT.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/17db4faead0f49e690306892f88f1e33/CGENE.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/08f2acea222441d3baf0946416a93746/CPLAN.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/c19994f68f944563b2bb3725c8ad0880/CPROF.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/56d46c7e7e6b4150bf49fbe8333a62c6/CTANG.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/38c785a832ea493c8804d2daca550d36/CLONG.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/e453968794104919ba438826b053c3d3/CCROS.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/abae501b927347739a2226fd94f5c238/CMINI.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/5f5b643e658f49bfb619b2d8e5d5de5c/CMAXI.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/122c59952f9c4c8e950be9d1e72755ed/CTOTA.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
> Error: Grid file could not be opened.
> Error: executing tool [GDAL: Export Raster]
> ____________________________
>
> #####   ##   #####    ##
> ###     ###  ##       ###
> ###   # ## ##  #### # ##
> ### ##### ##    # #####
> ##### #   ##  ##### #   ##
> ____________________________
>
> SAGA Version: 2.1.4
>
> ____________________________
> library path:   /usr/lib/x86_64-linux-gnu/saga/
> library name:   libio_gdal
> library     :   GDAL/OGR
> tool        :   GDAL: Export Raster
> author      :   O.Conrad (c) 2007
> processors  :   4 [4]
> ____________________________
>
> Load grid:
> /tmp/processing/9f6225e79ead451d88b568e37fa67c1c/CROTO.tif.sgrd...
> failed
> GDAL: Export Raster: could not initialize data objects
>
> --
> Paolo Cavallini - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html


More information about the Qgis-developer mailing list