[GRASS-user] Re: [GRASS-dev] Region setting correction

Michael Barton michael.barton at asu.edu
Sun Aug 20 12:28:48 EDT 2006


OK. I see that this pretty much the way it should work. There should
probably be more transparency in the process and better explanation. Showing
some current region stats (rows, columns, resolution?) in the status bar
wouldn't hurt either. Also, need to see if there are inconsistencies to work
out still. Also, as you've suggested, we probably need to switch to setting
the region dynamically rather than use a saved region as the temporary wind
file.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

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



> From: Glynn Clements <glynn at gclements.plus.com>
> Date: Sat, 19 Aug 2006 10:01:16 +0100
> To: Michael Barton <michael.barton at asu.edu>
> Cc: 'GRASS user list' <grassuser at grass.itc.it>, Grass Developers List
> <grass-dev at grass.itc.it>
> Subject: [GRASS-user] Re: [GRASS-dev] Region setting correction
> 
> 
> Michael Barton wrote:
> 
>> BUT (and a very confusing one at that), g.region run from the command line
>> and g.region run from the menus do NOT always behave the same way with
>> regard to the interactive zooming in a display. I have no idea why this is
>> so. Maybe someone else can enlighten me.
> 
> The only plausible explanation is that WIND_OVERRIDE isn't always
> being unset before g.region is run from gis.m, resulting in g.region
> modifying something other than the WIND file.
> 
> In fact, AFAICT, WIND_OVERRIDE will always be set; searching for
> WIND_OVERRIDE in gui/tcltk/gis.m indicates that the only places it is
> ever unset are in procedures (georect.tcl and mapcanvas.tcl) which
> subsequently set it. Thus any command run from gis.m will read (and
> possibly write) the saved region for the most recently used display,
> not the WIND file.
> 
> Also, as the <FocusIn> handler for each canvas sets WIND_OVERRIDE, its
> value can change at any time.
> 
> -- 
> Glynn Clements <glynn at gclements.plus.com>
> 
> 




More information about the grass-user mailing list