[Qgis-user] Error when using SAGA & SEXTANTE with QGIS 1.9

Nyx nyxynyx at gmail.com
Sat Apr 20 08:58:56 PDT 2013


"saga_cmd --v" says its SAGA 2.1.0. I've changed to SAGA 2.0.8, "saga_cmd
-v" shows SAGA 2.0.8 and now I'm getting different errors when trying to do
IDW.

------------------------------

SAGA execution console output

C:\>set SAGA=C:\Program Files (x86)\SAGA-GIS

C:\>set SAGA_MLB=C:\Program Files (x86)\SAGA-GIS\modules

C:\>PATH=PATH;C:\Program Files (x86)\SAGA-GIS;C:\Program Files
(x86)\SAGA-GIS\modules

C:\>saga_cmd grid_gridding "Inverse Distance Weighted" -SHAPES
"C:/Users/me/Desktop/test/Scores/MA Full/Scores.shp" -FIELD "score" -TARGET
0 -WEIGHTING 0 -POWER 2 -BANDWIDTH 1 -RANGE 0 -RADIUS 100 -MODE 0 -POINTS 0
-NPOINTS 10 -USER_XMIN 2135073.26163 -USER_XMAX 2442654.3611 -USER_YMIN
20206.1478731 -USER_YMAX 185532.363448 -USER_SIZE 0 -USER_GRID
"C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif.sgrd"
_____________________________________________
#####   ##   #####    ##
###     ###  ##       ###
###   # ## ##  #### # ##
### ##### ##    # #####
##### #   ##  ##### #   ##
_____________________________________________

library path: C:\Program Files (x86)\SAGA-GIS\modules
library name: grid_gridding
module name : Inverse Distance Weighted
author      : O.Conrad (c) 2003
_____________________________________________
go...

Load shapes: C:/Users/me/Desktop/test/Scores/MA Full/Scores.shp...

ready

okay




Parameters




Points: Scores
Attribute: score
Target Grid: user defined
Distance Weighting: inverse distance to a power
Inverse Distance Power: 2.000000
Exponential and Gaussian Weighting Bandwidth: 1.000000
Search Range: search radius (local)
Search Radius: 100.000000
Search Mode: all directions
Number of Points: maximum number of points
Maximum Number of Points: 10


error: executing module [Inverse Distance Weighted]

C:\>saga_cmd io_gdal 1 -GRIDS
"C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif.sgrd"
-FORMAT 1 -TYPE 0 -FILE
"C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif"
_____________________________________________
#####   ##   #####    ##
###     ###  ##       ###
###   # ## ##  #### # ##
### ##### ##    # #####
##### #   ##  ##### #   ##
_____________________________________________

library path: C:\Program Files (x86)\SAGA-GIS\modules
library name: io_gdal
module name : GDAL: Export Raster
author      : O.Conrad (c) 2007
_____________________________________________
go...

Load grid:
C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif.sgrd...

failed

error: Grid file could not be opened.

error: input file
[C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif.sgrd]

error: empty input list [GRIDS]
Usage: 1 -GRIDS <str> [-FILE <str>] [-FORMAT <str>] [-TYPE <str>]
-GRIDS:<str> Grid(s)
Grid list (input)
-FILE:<str>   File
File path
-FORMAT:<str> Format
Choice
Available Choices:
[0] Virtual Raster
[1] GeoTIFF
[2] National Imagery Transmission Format
[3] Erdas Imagine Images (.img)
[4] ELAS
[5] In Memory Raster
[6] MS Windows Device Independent Bitmap
[7] PCIDSK Database File
[8] ILWIS Raster Map
[9] SGI Image File Format 1.0
[10] Leveller heightfield
[11] Terragen heightfield
[12] ERMapper .ers Labelled
[13] Raster Matrix Format
[14] Idrisi Raster A.1
[15] Intergraph Raster
[16] Golden Software Binary Grid (.grd)
[17] Portable Pixmap Format (netpbm)
[18] ENVI .hdr Labelled
[19] ESRI .hdr Labelled
[20] PCI .aux Labelled
[21] Vexcel MFF Raster
[22] Vexcel MFF2 (HKV) Raster
[23] VTP .bt (Binary Terrain) 1.3 Format
[24] Image Data and Analysis
[25] NOAA Vertical Datum .GTX
[26] NTv2 Datum Grid Shift
[27] ARC Digitized Raster Graphics
[28] SAGA GIS Binary Grid (.sdat)
-TYPE:<str>   Data Type
Choice
Available Choices:
[0] match input data
[1] 8 bit unsigned integer
[2] 16 bit unsigned integer
[3] 16 bit signed integer
[4] 32 bit unsigned integer
[5] 32 bit signed integer
[6] 32 bit floating point
[7] 64 bit floating point

error: executing module [GDAL: Export Raster]

C:\>exit



------------------------------


SAGA execution commands
grid_gridding "Inverse Distance Weighted" -SHAPES
"C:/Users/me/Desktop/test/Scores/MA Full/Scores.shp" -FIELD "score" -TARGET
0 -WEIGHTING 0 -POWER 2 -BANDWIDTH 1 -RANGE 0 -RADIUS 100 -MODE 0 -POINTS 0
-NPOINTS 10 -USER_XMIN 2135073.26163 -USER_XMAX 2442654.3611 -USER_YMIN
20206.1478731 -USER_YMAX 185532.363448 -USER_SIZE 0 -USER_GRID
"C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif.sgrd"
io_gdal 1 -GRIDS
"C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif.sgrd"
-FORMAT 1 -TYPE 0 -FILE
"C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted2a326895f38d40229b126d04997aef7a.tif"



On Sat, Apr 20, 2013 at 10:20 AM, Victor Olaya <volayaf at gmail.com> wrote:

> Which version of SAGA are you using. It seems that the syntax is
> different from the one used by SEXTANTE to call it. SEXTANTE is
> adapted to SAGA 2.0.8
>
> run "saga_cmd --help" on a console to see which version you are running
>
> Cheers
> Victor
>
>
> 2013/4/20 Nyx <nyxynyx at gmail.com>:
> > Hi everyone, I am trying to use some SAGA function (IDW) using QGIS 1.9
> > 298f0c0  and the SEXTANTE plugin. SAGA 2.1 b3 64bit has already been
> > installed and the OS is Windows 8.
> >
> > When I activate SAGA from the SEXTANTE options, I find in the error logs
> 2
> > logs of:
> >
> > Could not load model watersheds.model
> > ALGORITHM:ftools:export/addgeometrycolumns
> >
> > Next when I select SAGA's Inverse Distance Weighted function within
> > Sextante, and use the default values for the parameters, I get an error
> > popup saying:
> >
> > Could not load layer
> >
> C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweighted......tif.
> > Check the SEXTANTE log to look for errors.
> >
> > In the SEXTANTE logs I find the following logs.
> >
> > Any ideas how we can get SEXTANTE to work? Thank you!!
> >
> >
> >
> > -----------------------------------------
> >
> > SAGA execution console output
> >
> > C:\>set SAGA=C:\Program Files\saga
> >
> > C:\>set SAGA_MLB=C:\Program Files\saga\modules
> >
> > C:\>PATH=PATH;C:\Program Files\saga;C:\Program Files\saga\modules
> >
> > C:\>saga_cmd grid_gridding "Inverse Distance Weighted" -SHAPES
> > "C:/Users/me/Desktop/test/Scores/MA Full/Scores.shp" -FIELD "score"
> -TARGET
> > 0 -WEIGHTING 0 -POWER 2 -BANDWIDTH 1 -RANGE 0 -RADIUS 100 -MODE 0
> -POINTS 0
> > -NPOINTS 10 -USER_XMIN 2135073.26163 -USER_XMAX 2442654.3611 -USER_YMIN
> > 20206.1478731 -USER_YMAX 185532.363448 -USER_SIZE 0 -USER_GRID
> >
> "C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweightedafef52b8ebe84495ac957c5155bd7f0a.tif.sgrd"
> > Unknown option 'POWER'
> > Usage: saga_cmd -SHAPES <str> [-FIELD <str>] [-TARGET <str>]
> [-SEARCH_RANGE
> > <str>] [-SEARCH_RADIUS <str>] [-SEARCH_POINTS_ALL <str>]
> [-SEARCH_POINTS_MAX
> > <num>] [-SEARCH_DIRECTION <str>] [-WEIGHTING <str>] [-WEIGHT_POWER <str>]
> > [-WEIGHT_BANDWIDTH <str>] [-USER_XMIN <str>] [-USER_XMAX <str>]
> [-USER_YMIN
> > <str>] [-USER_YMAX <str>] [-USER_SIZE <str>] [-USER_GRID <str>]
> [-GRID_GRID
> > <str>]
> > -SHAPES:<str>           Points
> > Shapes (input)
> > -FIELD:<str>             Attribute
> > Table field
> > -TARGET:<str>           Target Grid
> > Choice
> > Available Choices:
> > [0] user defined
> > [1] grid
> > -SEARCH_RANGE:<str>     Search Range
> > Choice
> > Available Choices:
> > [0] local
> > [1] global
> > -SEARCH_RADIUS:<str>     Maximum Search Distance
> > Floating point
> > Minimum: 0.000000
> > -SEARCH_POINTS_ALL:<str> Number of Points
> > Choice
> > Available Choices:
> > [0] maximum number of nearest points
> > [1] all points within search distance
> > -SEARCH_POINTS_MAX:<num> Maximum Number of Points
> > Integer
> > Minimum: 1.000000
> > -SEARCH_DIRECTION:<str> Search Direction
> > Choice
> > Available Choices:
> > [0] all directions
> > [1] quadrants
> > -WEIGHTING:<str>         Distance Weighting
> > Choice
> > Available Choices:
> > [0] inverse distance to a power
> > [1] linearly decreasing within search radius
> > [2] exponential weighting scheme
> > [3] gaussian weighting scheme
> > -WEIGHT_POWER:<str>     Power
> > Floating point
> > -WEIGHT_BANDWIDTH:<str> Bandwidth
> > Floating point
> > Minimum: 0.000000
> > -USER_XMIN:<str>         Left
> > Floating point
> > -USER_XMAX:<str>         Right
> > Floating point
> > -USER_YMIN:<str>         Bottom
> > Floating point
> > -USER_YMAX:<str>         Top
> > Floating point
> > -USER_SIZE:<str>         Cellsize
> > Floating point
> > Minimum: 0.000000
> > -USER_GRID:<str>         Grid
> > Data Object (optional output)
> > -GRID_GRID:<str>         Grid
> > Grid (output)
> >
> > C:\>saga_cmd io_gdal 1 -GRIDS
> >
> "C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweightedafef52b8ebe84495ac957c5155bd7f0a.tif.sgrd"
> > -FORMAT 1 -TYPE 0 -FILE
> >
> "C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweightedafef52b8ebe84495ac957c5155bd7f0a.tif"
> >
> > error: Grid file could not be opened.
> >
> > error: input file
> >
> [C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweightedafef52b8ebe84495ac957c5155bd7f0a.tif.sgrd]
> >
> > error: empty input list [GRIDS]
> > Usage: saga_cmd -GRIDS <str> [-FILE <str>] [-FORMAT <str>] [-TYPE <str>]
> > [-OPTIONS <str>]
> > -GRIDS:<str>   Grid(s)
> > Grid list (input)
> > -FILE:<str>   File
> > File path
> > -FORMAT:<str> Format
> > Choice
> > Available Choices:
> > [0] ERDAS JPEG2000 (SDK 3.x)
> > [1] Flexible Image Transport System
> > [2] Network Common Data Format
> > [3] Virtual Raster
> > [4] GeoTIFF
> > [5] National Imagery Transmission Format
> > [6] Erdas Imagine Images (.img)
> > [7] ELAS
> > [8] In Memory Raster
> > [9] MS Windows Device Independent Bitmap
> > [10] PCIDSK Database File
> > [11] ILWIS Raster Map
> > [12] SGI Image File Format 1.0
> > [13] Leveller heightfield
> > [14] Terragen heightfield
> > [15] USGS Astrogeology ISIS cube (Version 2)
> > [16] ERMapper .ers Labelled
> > [17] Raster Matrix Format
> > [18] Idrisi Raster A.1
> > [19] Intergraph Raster
> > [20] Golden Software Binary Grid (.grd)
> > [21] Portable Pixmap Format (netpbm)
> > [22] ENVI .hdr Labelled
> > [23] ESRI .hdr Labelled
> > [24] PCI .aux Labelled
> > [25] Vexcel MFF Raster
> > [26] Vexcel MFF2 (HKV) Raster
> > [27] VTP .bt (Binary Terrain) 1.3 Format
> > [28] Erdas .LAN/.GIS
> > [29] Image Data and Analysis
> > [30] NOAA Vertical Datum .GTX
> > [31] NTv2 Datum Grid Shift
> > [32] ARC Digitized Raster Graphics
> > [33] SAGA GIS Binary Grid (.sdat)
> > -TYPE:<str>   Data Type
> > Choice
> > Available Choices:
> > [0] match input data
> > [1] 8 bit unsigned integer
> > [2] 16 bit unsigned integer
> > [3] 16 bit signed integer
> > [4] 32 bit unsigned integer
> > [5] 32 bit signed integer
> > [6] 32 bit floating point
> > [7] 64 bit floating point
> > -OPTIONS:<str> Creation Options
> > Text
> >
> > C:\>exit
> >
> >
> >
> >
> > and
> >
> >
> >
> >
> > SAGA execution commands
> > grid_gridding "Inverse Distance Weighted" -SHAPES
> > "C:/Users/me/Desktop/test/Scores/MA Full/Scores.shp" -FIELD "score"
> -TARGET
> > 0 -WEIGHTING 0 -POWER 2 -BANDWIDTH 1 -RANGE 0 -RADIUS 100 -MODE 0
> -POINTS 0
> > -NPOINTS 10 -USER_XMIN 2135073.26163 -USER_XMAX 2442654.3611 -USER_YMIN
> > 20206.1478731 -USER_YMAX 185532.363448 -USER_SIZE 0 -USER_GRID
> >
> "C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweightedafef52b8ebe84495ac957c5155bd7f0a.tif.sgrd"
> > io_gdal 1 -GRIDS
> >
> "C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweightedafef52b8ebe84495ac957c5155bd7f0a.tif.sgrd"
> > -FORMAT 1 -TYPE 0 -FILE
> >
> "C:\Users\me\AppData\Local\Temp\sextante\sagainversedistanceweightedafef52b8ebe84495ac957c5155bd7f0a.tif"
> >
> >
> >
> >
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130420/34047bbc/attachment.html>


More information about the Qgis-user mailing list