[Qgis-developer] adding options to sextante grass-functions

Victor Olaya volayaf at gmail.com
Thu May 10 06:05:17 PDT 2012

If the interface is freezing, that means that GRASS is freezing (maybe
it takes too long to process or the data is invalid). If you were
passing wrong data, SEXTANTE would make a wrong call to GRASS and
GRASS would produce nothing, which will cause SEXTANTE to fail
afterwards showing an error message. But since it is not even
finishing and producing the log info, I guess that womething wrong is
happening with GRASS.

You can try to execute the GRASS call outside of SEXTANTE. In the
SEXTANTE log you will find the commands. Execute them from GRASS and
see what happens.

The ParameterString is fine, but You can use ParameterFile as well, like this

ParameterFile|pointsfile | GCP_Table |False

False indicates that it is not a folder, but a file

Regards, and thanks for you work

2012/5/10 skampus <stefano.campus at regione.piemonte.it>:
> I seem to have realized that you can put in each algorithm of Sextante all
> the options originally planned for grass, by editing the specified command
> file .txt which is (in my case) in C:\Users\
> skampus\.qgis\python\plugins\Sextante\grass\description
> So I did for the command v.transform, in order to perform the transformation
> by means of GCP whose coordinates are into a separate table, as shown in the
> help of command (http://grass.osgeo.org/gdp/html_grass64/v.transform.html).
> I opened the file v.transform.txt and i added the line ParameterString |
> pointsfile | GCP_Table |
> v.transform
> v.transform
> Vector (v.*)
> ParameterVector|input|input|-1|False
> ParameterNumber|xshift|xshift|None|None|0.0
> ParameterNumber|yshift|yshift|None|None|0.0
> ParameterNumber|zshift|zshift|None|None|0.0
> ParameterNumber|xscale|xscale|None|None|1.0
> ParameterNumber|yscale|yscale|None|None|1.0
> ParameterNumber|zscale|zscale|None|None|1.0
> ParameterNumber|zrot|zrot|None|None|0.0
> ParameterString|pointsfile|GCP_Table|
> OutputVector|output|output
> Once the command is launched by Sextante, i add the path to the table (using
> both "/" and "\") but everything freezes and after several minutes it gives
> an error indeterminate, not reported in the log Sextante.
> I'd like to know if the use of this external table relates to
> "ParameterString" category or another not listed in
> http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin/src/sextante/grass/grass.txt
> thank you in advance
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/adding-options-to-sextante-grass-functions-tp4965610.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

More information about the Qgis-developer mailing list