[GRASS-dev] Re: r.fillnulls in trunk broken when map units are not meter

Markus Metz markus.metz.giswork at googlemail.com
Fri May 7 07:43:24 EDT 2010


Markus Metz wrote:
> ... because in the python script there is in line 120
>
>    reg = grass.region()
>
> but it should be the python equivalent to bash
>
> eval `g.region -gm | grep res`
>
> note the -m flag. This is necessary because the input buffer distance
> for r.buffer must be in meters.

Fixed in r42142, using r.grow instead of r.buffer, much simpler and
guaranteed 3 cells buffer, see original comments in code. Can someone
please review my python hack? Thanks.

BTW, r.buffer in trunk is broken for latln, wrong results and slow, in
grass64 results are fine and it is much faster (???).

Markus M


More information about the grass-dev mailing list