[GRASS5] Re: [bug #3100] (grass) r.proj is making the asymmetric integer truncation error

Markus Neteler neteler at itc.it
Wed Mar 30 03:14:21 EST 2005


Hi Morten,

On Mon, Mar 28, 2005 at 05:21:31PM +0200, Morten Hulden wrote:
> 
> Hi Markus,
> 
> as I could not get write access to the cvs (public key failed) I submit 

@ Bernhard: could you fix that for Morten?

> this patch to you directly as a diff file. To apply the patch you should 
> go into the directory where your grass6 sources are stored 
> (/usr/local/src/grass/grass6 in my case) and issue
> 
> patch -p1 < /path/to/r.proj-20050328mhu.patch
> 
> 
> This patch fixes two things:
> 
> -assymetric integer truncation error [bug #3100]
> -adds a missing offset to the initial x-coodinate for each row in the 
> main projection loop. this offset causes the projection of the _center_ 
> of the cell instead of the border. this was always the intention but 
> earlier it was only made correctly for the first row of the location.
> 
> A set of test maps provided by Maciek Sieczka helped to spot the bugs.

I have applied the bug fixes to
- CVS 6.1
- 6.0 release branch

Thanks for fixing it,

 Markus




More information about the grass-dev mailing list