[GRASS-dev] text interface for GRASS70

Pierre Roudier pierre.roudier at gmail.com
Mon Mar 21 22:56:45 EDT 2011


Thanks for your reply Glynn,

> As suggested in the above message, specifying the path to an existing
> mapset directory as an argument should work (but probably doesn't get
> much testing). The "demolocation" location should be installed under
> $GISBASE; you may be able to use that, provided that you own the
> PERMANENT mapset.

As root I can open the demolocation mapset:
root at grass:/usr/local/src# grass70
/usr/local/grass-7.0.svn/demolocation/PERMANENT/

However it is impossible to do anything inside it -even create a new
mapset or consult the help:
GRASS 7.0.svn (demolocation):/usr/local/src > g.list rast,vect
ERROR: MAPSET PERMANENT - permission denied

> If you don't own the demolocation/PERMANENT directory, you can create
> a copy which you do own with e.g. "cp -r ..." and use that.
>

I tried to copy + chown the demolocation to a single user, but grass
won't start:
root at grass:/usr/local/src# cp -R ../grass-7.0.svn/demolocation/
/home/pierrer/grassdata/
root at grass:/usr/local/src# chown -R pierrer:pierrer
/home/pierrer/grassdata/demolocation/
pierrer at grass:~$ grass70 /home/pierrer/grassdata/demolocation/PERMANENT/
Traceback (most recent call last):
  File "/usr/local/bin/grass70", line 943, in <module>
    grass_intro()
  File "/usr/local/bin/grass70", line 370, in grass_intro
    f = open(path, 'r')
IOError: [Errno 2] No such file or directory:
'/home/pierrer/grassdata/etc/grass_intro'

> Ultimately, we really need to add e.g. a "-c" flag to the grass70
> script to allow the creation of a new database/location/mapset on
> systems where the GUI cannot be used.

That'd be great!

Thanks again,

Pierre

>
> --
> Glynn Clements <glynn at gclements.plus.com>
>



-- 
Scientist
Landcare Research, New Zealand


More information about the grass-dev mailing list