[GRASSLIST:3249] Re: creating new mapset/location in batch-mode

Glynn Clements glynn.clements at virgin.net
Wed Apr 21 07:24:47 EDT 2004


Kinberger Michaela wrote:

> We are working on an internet application which uses grass for 
> interpolation (idw).
> The user can select the kind of point data to send to grass. Now a 
> shellscript will be executet to get
> back a .tif +  .tfw  viewd  by  the  umn  mapserver.
> 
> what happens when  two users start one grass location with the same 
> mapset at the same time.

The behaviour is undefined (i.e. it may cause problems). Note that the
supplied GRASS startup script doesn't allow a single user to run
multiple sessions.

Coupled with the fact that you can only select a mapset as the current
mapset (the one in which new maps are created) if you own the
directory, it isn't normally possible to have multiple sessions with
the same current mapset.

> is it possible to start idw two times with different mapsets but the 
> same location

Yes.

> and how can i create a new mapset/location in batchmode.

To create a new mapset, simply create a new subdirectory within the
location directory, then create a WIND file in the mapset subdirectory
(e.g. by copying PERMANENT/DEFAULT_WIND).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list