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

Victor Olaya volayaf at gmail.com
Sat Apr 20 07:20:45 PDT 2013


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
>



More information about the Qgis-user mailing list