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

Michael Barton michael.barton at asu.edu
Wed Feb 8 02:01:51 EST 2006


I'm already doing this with gism (hence the individual regions for each map
display). I think that using the new WIND_OVERRIDE will save a few steps in
this.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



> From: Glynn Clements <glynn at gclements.plus.com>
> Date: Wed, 8 Feb 2006 02:38:41 +0000
> To: Michael Barton <michael.barton at asu.edu>
> Cc: <grass5 at grass.itc.it>
> Subject: Re: [GRASS5] [bug #4065] (grass) gis.m: displaying a map
> automatically switches resolution back to default
> 
> 
> 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