Hi,

2010/6/22 Monica Buescu <[email protected]>:
> 1- How can I define an image destination mapset? I mean should I first
> define mapset (g.mapset) and run my functions or should I define in output
> the im...@target_mapset?

define target mapset as current using g.mapset. You have write access
only to the current mapset.

> 2- How can I retrieve the current mapset? What is the grass modules to
> perform this?

in bash:

eval `g.gisenv`
echo $MAPSET

in python

import grass.script as grass
grass.gisenv()['MAPSET']


Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to