Skip to content

GRASS commands

2 messages · Alexandre VILLERS, Roger Bivand

#
On Tue, 1 Sep 2009, Alexandre VILLERS wrote:

            
parameters=list(map="grilleTest",
Consider the statsgrass list for use of the interface between R and 
GRASS, in this case there is an interaction between a possible bug in 
v.mkgrid and the parsing of its parameters.

Since v.mkgrid does declare that grid does *not* take multiple values, the 
(current) logic of doGRASS() is defeated, as it checks that the multiple 
attribute if the GRASS parameter is not "NO", see

http://trac.osgeo.org/grass/browser/grass/trunk/vector/v.mkgrid/main.c#L74

The discrepancy between the code and the documentation is obvious.

Please ask on a GRASS list whether other scripted interfaces experience 
the same problem - as far as I can see from the wxpython interface, only a 
single value is accepted, but running the command fails because two are 
required (same problem in reverse). Thw widget used for entering the 
parameter values does not the entry of two values. The work-around for now 
is to use v.mkgrid in system() directly.

Hope this helps,

Roger