[STATSGRASS] problems assesing mapsets
Roger Bivand
Roger.Bivand at nhh.no
Thu Jan 13 06:45:01 EST 2005
On Thu, 13 Jan 2005, Markus Neteler wrote:
> On Thu, Jan 13, 2005 at 12:15:21PM +0100, Roger Bivand wrote:
> > On 13 Jan 2005, Marta Benito wrote:
> >
> > > Hi,
> > > I am having problems using the GRASS library in R.
> > > I think I am doing something wrong when using gmeta but I don't know
> > > exactly, the problem began when I've done update of packages in R and
> > > GRASS.
> > >
> > > GRASS 5.7.cvs:~/grassdata/espanya_modelo_devel > R
> > > > library(GRASS)
> > > GRASS environment variables in: /tmp/grass6-marta-8901/gisrc
> > > G<-gmeta()
> > > Error in gmeta() : region for current mapset MAPSET
> > > run "g.region"
> >
> > You seem to be using GRASS 5.7 or 6.0beta1, is that correct?
> >
> > Please try G <- gmeta(interp=TRUE), and post the result (str(G)) - this
> > may be a WIND3 WINDOW not being recognised by the 5.0 version of the GRASS
> > function used when run with interp=FALSE.
>
> Roger,
>
> to detect a GRASS version, we have added
>
> lib/gis/version.c
> int
> G_version (char *major, char *minor, char *release)
>
> This might be helpful for the WIND/WIND3 issue. This functions is
> already present in 6.0beta1.
Good, thanks, I'll see what can be done. I don't think it's easy, because
this function won't exist in older versions, so I'll need to figure
that out.
Roger
>
> Markus
>
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
More information about the grass-stats
mailing list