[GRASS5] [bug #4065] (grass) gis.m: displaying a map automatically switches resolution back to default

Glynn Clements glynn at gclements.plus.com
Tue Feb 7 21:38:41 EST 2006

Michael Barton wrote:

> I just realized that this would happen last night. This is due to each map
> display having its own, independent region settings. I have a fix planned (a
> button to display map in current region).

I have recently committed a change to G_get_window() such that you can
set the environment variable WIND_OVERRIDE to the name of a stored
region (in the "windows" subdirectory of the current mapset, as per
"g.region save=...") to have G_get_window() use that instead of the
WIND file.

The intended usage is so that gis.m etc can force individual commands
to use a specific region without interfering with command-line usage,
background commands, etc. IOW, commands run from within gis.m should
use "set env(WIND_OVERRIDE) ..." rather than running g.region (you can
use "g.region ... save=..." to create suitable region files).

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list