[GRASS-dev] Access to mapset environment variable

Sören Gebbert soerengebbert at googlemail.com
Thu Sep 4 02:00:23 PDT 2014


Hi Hamish,
Thanks for your answer.
Am 04.09.2014 00:19 schrieb "Hamish" <hamish.webmail at gmail.com>:
>
> Sören wrote:
> > I am struggling to access GRASS mapset specific environmental
> > variables from mapsets different than the current one in C.
> ...
> > Is there a possibility to access mapset specific environmental
> > variables in C from a different mapset as the current one?
>
> Hi,
>
> I would suggest to use the mapsets' VAR file, not gisrc (g.gisenv),
> to store per-mapset variables like that. Since gisrc is per-session
> and ephemeral, not per-mapset and remembered after the session is
> closed.

Actually that is exactly what i am trying to do. So my question is how to
convince grass to read the VAR file from a mapset other than the current
one without invoking g.mapset.

Best regards
Soeren

>
>
> hope it helps,
> Hamish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140904/4f9be956/attachment.html>


More information about the grass-dev mailing list