Details Ticket 5183


Comment | Reply | Take | Open


Serial Number 5183
Subject g.region -a: different number of rows if using 'res' or 'nsres' and 'ewres' - though res=nsres=ewres=10!
Area grass6
Queue grass
Requestors tutey@o2.pl
Owner none
Status resolved
Last User Contact Tue Oct 3 13:32:24 2006 (2 yr ago)
Current Priority 99
Final Priority 99
Due No date assigned
Last Action Tue Oct 3 13:32:24 2006 (2 yr ago)
Created Mon Oct 2 23:48:56 2006 (2 yr ago)

Transaction History Ticket 5183


Mon, Oct 2 2006 23:48:56    Request created by msieczka  
Subject: g.region -a: different number of rows if using 'res' or 'nsres' and
'ewres' - though res=nsres=ewres=10!

Although the n,s,e,w are equal in both cases, and that res=nsres=ewres=10, the
number of rows in the resulting regions are different:

$ g.region n=5679000 s=5678670 w=599240 e=599880 res=10 -ag
n=5679000
s=5678670
w=599240
e=599880
nsres=10
ewres=10
rows=33    < !!!
cols=64

$ g.region n=5679000 s=5678670 w=599240 e=599880 nsres=10 ewres=10 -ag
n=5679000
s=5678660
w=599240
e=599880
nsres=10
ewres=10
rows=34    < !!!
cols=64

Please please please fix it before 6.2 release.

Maciek
Tue, Oct 3 2006 05:17:52    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Message-ID <17697.54872.185035.357791@cerise.gclements.plus.com>
Date Tue, 3 Oct 2006 04:17:44 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5183] (grass) g.region -a: different number of rows if using 'res' or 'nsres' and 'ewres' - though res=nsres=ewres=10!
In-Reply-To <20061002214856.DE2D91005C3@lists.intevation.de>
References <20061002214856.DE2D91005C3@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=5183
> -------------------------------------------------------------------------
> 
> Subject: g.region -a: different number of rows if using 'res' or 'nsres' and
'ewres' - though res=nsres=ewres=10!
> 
> Although the n,s,e,w are equal in both cases, and that res=nsres=ewres=10,
the
>  number of rows in the resulting regions are different:
> 
> $ g.region n=5679000 s=5678670 w=599240 e=599880 res=10 -ag
> n=5679000
> s=5678670
> w=599240
> e=599880
> nsres=10
> ewres=10
> rows=33    < !!!
> cols=64
> 
> $ g.region n=5679000 s=5678670 w=599240 e=599880 nsres=10 ewres=10 -ag
> n=5679000
> s=5678660
> w=599240
> e=599880
> nsres=10
> ewres=10
> rows=34    < !!!
> cols=64
> 
> Please please please fix it before 6.2 release.

I've changed it in CVS.

Previously, ewres=/nsres= rounded to an even multiple of the
resolution, whereas res= simply rounded to a multiple.

-- 
Glynn Clements <glynn@gclements.plus.com>


Tue, Oct 3 2006 11:59:16    Mail sent by mneteler  
Ported to 6.2.

Markus
Tue, Oct 3 2006 13:32:24    Status changed to resolved by msieczka  
Tue, Oct 3 2006 13:32:24    Mail sent by msieczka  
glynn@gclements.plus.com wrote (Tue, Oct 3 2006 05:17:52):

> I've changed it in CVS.
> 
> Previously, ewres=/nsres= rounded to an even multiple of the
> resolution, whereas res= simply rounded to a multiple.

Many many thanks! Works OK now.

Closing the ticket.

Maciek

Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request