[GRASS-user] sample bash script for multiple mapsets

Hamish hamish_b at yahoo.com
Sun Feb 15 21:36:46 EST 2009


maning sambale wrote:
> In a single script I would like to:
> open a mapset and do vector processing, then,
> open another mapset,
> import vectors from previous mapset
> continue  processing.
> 
> Any psuedoscript to do this?

is it all in the same location?

if so you can use g.mapset (no "s") to change the current mapset, then
refer to other mapset maps as mapname at othermapset. (imagery modules need
work here)  no need to import anything.

if not you could still use g.mapset to change the location, but it is
probably safer/more sane to use GRASS_BATCH_JOB to drive the process to
leave & restart GRASS in the new location and run v.proj, maybe with
another script to drive the overall job.


will the g.gui GUI be needed? that might complicate things for g.mapset.

TODO: finish script to create a new location with command line params from
outside of GRASS (See thread from ~2 weeks ago)


Hamish



      



More information about the grass-user mailing list