<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<DEFANGED_META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<DEFANGED_META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: [GRASSLIST:10331] Re: [GRASS5] New release candidate 3 of GIS Manager 2</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I could be wrong about this, but I remember some discussion on the list a while back about this issue.&nbsp; I thought that g.region changes the resolution so that there are always an integer number of cells in the display.&nbsp; Partial cells can't be displayed, so the resolution is changed to best fit your desired zooming, always going in the direction of greater resolution.&nbsp; Does this sound familiar to anyone else?<BR>
<BR>
-Ian<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: owner-GRASSLIST@baylor.edu on behalf of Michael Barton<BR>
Sent: Wed 2/15/2006 3:59 PM<BR>
To: Maciek Sieczka<BR>
Cc: grass5@grass.itc.it; Multiple recipients of list<BR>
Subject: [GRASSLIST:10331] Re: [GRASS5] New release candidate 3 of GIS Manager 2<BR>
<BR>
Maciek,<BR>
<BR>
I see what you are talking about. But the GIS Manager is NOT doing this. The<BR>
zooming in the new GIS Manager does NOT use d.zoom. It simply resets the<BR>
region extents--extents ONLY--by issuing a g.region n=y1 s=y2 e=x1 w=x2 (no<BR>
change to resolution)<BR>
<BR>
I tried adding the -a flag and it makes no difference. It looks like it is<BR>
some kind of a rounding issue in g.region (or possibly in the OS). In a<BR>
working context the change is a tiny fraction of a mm in your example below.<BR>
So it wouldn't make any meaningful difference in most cases. However, it is<BR>
odd that it happens. Maybe someone who understands the g.region code can<BR>
explain it.<BR>
<BR>
Michael<BR>
______________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution and Social Change<BR>
Arizona State University<BR>
Tempe, AZ&nbsp; 85287-2402<BR>
USA<BR>
<BR>
voice: 480-965-6262; fax: 480-965-7671<BR>
www: <A HREF="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</A><BR>
<BR>
<BR>
&gt; From: Maciek Sieczka &lt;werchowyna@epf.pl&gt;<BR>
&gt; Date: Tue, 14 Feb 2006 21:12:17 +0100<BR>
&gt; To: Michael Barton &lt;michael.barton@asu.edu&gt;<BR>
&gt; Cc: &lt;grass5@grass.itc.it&gt;, &lt;GRASSLIST@baylor.edu&gt;<BR>
&gt; Subject: Re: [GRASS5] New release candidate 3 of GIS Manager 2<BR>
&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; Zoom does NOT change resolution, only EXTENTS.<BR>
&gt;<BR>
&gt; But it really DOES change the region. Try for yourself:<BR>
&gt;<BR>
&gt; 1.<BR>
&gt; $ g.region rast=u65_10k_rogow -ap<BR>
&gt; projection: 1 (UTM)<BR>
&gt; zone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 33<BR>
&gt; datum:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wgs84<BR>
&gt; ellipsoid:&nbsp; wgs84<BR>
&gt; north:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5681438<BR>
&gt; south:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5676368<BR>
&gt; west:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 596952<BR>
&gt; east:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 603815<BR>
&gt; nsres:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<BR>
&gt; ewres:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<BR>
&gt; rows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5070<BR>
&gt; cols:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 6863<BR>
&gt;<BR>
&gt; 2.<BR>
&gt; Display in gis.m, zoom in once.<BR>
&gt;<BR>
&gt; 3.<BR>
&gt; $ g.region -p<BR>
&gt; projection: 1 (UTM)<BR>
&gt; zone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 33<BR>
&gt; datum:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wgs84<BR>
&gt; ellipsoid:&nbsp; wgs84<BR>
&gt; north:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5679541.73929<BR>
&gt; south:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5678636.76827<BR>
&gt; west:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 600274.248772<BR>
&gt; east:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 601286.741103<BR>
&gt; nsres:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.99996798<BR>
&gt; ewres:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.99949885<BR>
&gt; rows:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 905<BR>
&gt; cols:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1013<BR>
&gt;<BR>
&gt;<BR>
&gt; As you can see the resolution changed. Please don't do it.<BR>
&gt;<BR>
&gt;&gt; controlled by g.region. Nothing I can do about that.<BR>
&gt;<BR>
&gt; Use &quot;g.region -a&quot; instead?<BR>
&gt;<BR>
&gt; Who can say what d.zoom is doing that it is not changing the res at<BR>
&gt; zooming in/out?<BR>
&gt;<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
<pre>
-------------------------------------------------------------
This message has been scanned by Postini anti-virus software.