[GRASS-dev] Re: [GRASS GIS] #739: v.mkgrid parameter needs two values but is multiple=NO

Markus Neteler neteler at osgeo.org
Tue Sep 1 17:27:41 EDT 2009


On Tue, Sep 1, 2009 at 9:50 PM, Roger Bivand<Roger.Bivand at nhh.no> wrote:
> On Tue, 1 Sep 2009, GRASS GIS wrote:
>
>> #739: v.mkgrid parameter needs two values but is multiple=NO
...
>> here you need to use
>>
>> ... grid=paste(as.integer(100), as.integer(100), sep=",")
>
> No,
>
>> execGRASS("v.mkgrid", flags="overwrite", parameters=list(map="grd",
>>   grid=paste(as.integer(100), as.integer(100), sep=",")))
>> Error in doGRASS(cmd, flags = flags, parameters = parameters) :
>> Parameter <grid> does not have integer value
>
> because doGRASS() checks the type, and with c(as.integer(100),
>  as.integer(100)) would concatenate correctly with a comma.

I see (if possible, could we have the debug output of R?).

> The problem is in the wrong setting of grid->multiple as NO, which simply
> isn't examined from the command line. The wxpython GUI version has exactly
> the same problem.

For me it works in GRASS 6.5 wxGUI, also in the (current) 6.4.svn.

Markus


More information about the grass-dev mailing list