[Qgis-developer] SEXTANTE for QGIS has been released

Pedro Venâncio pedrongvenancio at yahoo.com
Thu Apr 12 17:42:58 EDT 2012


Hi Salvatore,

Thank you very much, it works now on terminal!


However, still can not run any SAGA tool from the SEXTANTE plugin...

For instance, "Polygon centroids". SEXTANTE logs:

SAGA execution commands
libshapes_polygons "Polygon Centroids" -POLYGONS "/home/pedro/Limpezas/caop_2011_pinhel.shp" -CENTROIDS "/home/pedro/sextante/outputs_centroids.shp"
SAGA execution console output

18:47:44: Error: /home/pedro/libshapes_polygons.so: cannot open shared object file: No such file or directory
_____________________________________________
  #####   ##   #####    ##
 ###     ###  ##       ###
  ###   # ## ##  #### # ##
   ### ##### ##    # #####
##### #   ##  ##### #   ##
SAGA CMD 2.0.4
_____________________________________________
Load table: /home/pedro/saga.srs...
failed
error: Library could not be loaded [libshapes_polygons]
error: no valid module library found in path [/home/pedro]
type -h or --help for further information


In the terminal it works with exactly the same syntax as SEXTANTE:

pedro at debian-amilo:~$ saga_cmd libshapes_polygons "Polygon Centroids" -POLYGONS "/home/pedro/Limpezas/caop_2011_pinhel.shp" -CENTROIDS "/home/pedro/sextante/outputs_centroids.shp"



I still found something strange in some algorithms. 
For example, the tool "Create Graticule" gives SEXTANTE error. Logs:

SAGA execution commands
libshapes_tools "Create Graticule" -EXTENT "/home/pedro/Limpezas/caop_2011_pinhel.shp" -X_EXTENT_MIN 0 -X_EXTENT_MAX 0 -Y_EXTENT_MIN 0 -Y_EXTENT_MAX 0 -DISTX 100 -DISTY 100 -TYPE 0 -GRATICULE "/home/pedro/sextante/grid.shp"

SAGA execution console output
21:06:57: Error: /home/pedro/libshapes_tools.so: cannot open shared object file: No such file or directory
____________________________________________
  #####   ##   #####    ##
 ###     ###  ##       ###
  ###   # ## ##  #### # ##
   ### ##### ##    # #####
##### #   ##  ##### #   ##
SAGA CMD 2.0.4
____________________________________________
Load table: /home/pedro/saga.srs...
failed
error: Library could not be loaded [libshapes_tools]
error: no valid module library found in path [/home/pedro]
type -h or --help for further information


By running the command directly in the terminal, it gives an error by the fact that the module is "Create graticule" and not "Create Graticule" (case sensitive).

Then, there are some parameters in the syntax that does not match the accepted SAGA_CMD sintax. And the module only works like this:

$ saga_cmd libshapes_tools "Create graticule" -LINES "/home/pedro/sextante/grid.shp" -LIMIT_SHAPES "/home/pedro/Limpezas/caop_2011_pinhel.shp" -X_EXTENT_MIN 0 -X_EXTENT_MAX 0 -Y_EXTENT_MIN 0 -Y_EXTENT_MAX 0 -DISTX 1000 -DISTY 1000 -TYPE 0



The same applies, eg with the tool "Shapes Buffer". logs:

SAGA execution commands
libshapes_tools "Shapes Buffer" -SHAPES "/home/pedro/sextante/outputs.shp" -BUF_TYPE 0 -BUF_DIST 100 -BUF_FIELD "AREA_T_HA" -BUF_SCALE 1 -BUF_ZONES 1 -DCIRCLE 5 -DISSOLVE        -BUFFER "/home/pedro/sextante/outputs_buff.shp"

SAGA execution console output
20:59:52: Error: /home/pedro/libshapes_tools.so: cannot open shared object file: No such file or directory
_____________________________________________
  #####   ##   #####    ##
 ###     ###  ##       ###
  ###   # ## ##  #### # ##
   ### ##### ##    # #####
##### #   ##  ##### #   ##
SAGA CMD 2.0.4
_____________________________________________
Load table: /home/pedro/saga.srs...
failed
error: Library could not be loaded [libshapes_tools]
error: no valid module library found in path [/home/pedro]
type -h or --help for further information


In the terminal:

pedro at debian-amilo:~$ saga_cmd libshapes_tools "Shapes Buffer" -SHAPES "/home/pedro/sextante/outputs.shp" -BUF_TYPE 0 -BUF_DIST 100 -BUF_SCALE 1 -BUF_ZONES 1 -DCIRCLE 5 -DISSOLVE        -BUFFER "/home/pedro/sextante/outputs_buff.shp"
  #####   ##   #####    ##
 ###     ###  ##       ###
  ###   # ## ##  #### # ##
   ### ##### ##    # #####
##### #   ##  ##### #   ##
SAGA CMD 2.0.4
_____________________________________________
Load table: /home/pedro/saga.srs...
failed
library path:    /usr/lib/saga
library name:    libshapes_tools
module name :    Shapes Buffer
author      :    (c) 2008 by O.Conrad
_____________________________________________
go...
Unknown option 'DISSOLVE'
Usage: Shapes Buffer -SHAPES <str> -BUFFER <str> [-BUF_TYPE <num>] [-BUF_DIST <str>] [-BUF_FIELD <num>] [-BUF_SCALE <str>] [-BUF_ZONES <num>] [-DCIRCLE <str>]
  -SHAPES:<str>       Shapes
    Shapes (input)
  -BUFFER:<str>       Buffer
    Shapes (output)
  -BUF_TYPE:<num>     Buffer Distance
    Choice
    Available Choices:
    [0] fix value
    [1] attribute field
  -BUF_DIST:<str>     Buffer Distance (Fixed)
    Floating point
    Minimum: 0.000000
  -BUF_FIELD:<num>    Buffer Distance (Attribute)
    Table field
  -BUF_SCALE:<str>    Scaling Factor for Attribute Value
    Floating point
    Minimum: 0.000000
  -BUF_ZONES:<num>    Number of Buffer Zones
    Integer
    Minimum: 1.000000
  -DCIRCLE:<str>      Circle Point Distance [Degree]
    Floating point
    Value Range: 0.010000 - 45.000000
error: executing module [Shapes Buffer]


This is how it works:

pedro at debian-amilo:~$ saga_cmd libshapes_tools "Shapes Buffer" -SHAPES "/home/pedro/sextante/outputs.shp" -BUF_TYPE 0 -BUF_DIST 100 -BUF_SCALE 1 -BUF_ZONES 1 -DCIRCLE 5 -BUFFER "/home/pedro/sextante/outputs_buff.shp"



Someone confirm this behavior?

Environment:
Debian 6.0.4 (squeeze)
QGIS 1.7.4 (SEXTANTE 1.0.2)
SAGA 2.0.4


Best regards,
Pedro Venâncio




----- Original Message -----

add access to SAGA libraries, if you have not done:
$ export SAGA_MLB=/usr/lib/saga

Also, try it using plugin SEXTANTE in QGIS!
For example: running the command "Convert Polygons to Lines"!

-SL



More information about the Qgis-developer mailing list