[GRASS-user] r.le.patch crashes with -c flag

Markus Neteler neteler at osgeo.org
Wed Nov 4 14:46:43 EST 2009


On Wed, Nov 4, 2009 at 4:48 PM, Adam Wilson
<adammichaelwilson2 at gmail.com> wrote:
> Greetings all,
>
> I am trying to run r.le.patch to create a map of separate 'patches' using
> the -c flag to drop the edges and only keep core areas of a certain size.
>
> To recreate this:
>
> g.region n=1 s=0 e=1 w=0 res=.01
>                              ## Make some region
> r.random.surface
> output=surface
> ## create a raster to use as input
> r.random input=surface n=10 raster_output=points --o
> ## create some random points
> r.grow input=points radius=10 output=patch
> --o                                     ## grow them to make 'patches'
> r.le.patch -n map=patch sam=w co1=2
> co2=c1                                      ## run r.le.patch with -n flag
> to identify the patches by number - it works fine
> r.le.patch -c map=patch sam=w co1=2
> co2=c1                                       ## run r.le.patch with -c flag
> to identify only 'core areas' - it crashes!
>
> It segfaults with the error shown below.  I am running the GRASS6.4.0RC5
> checked out and compiled this morning on Fedora 11 2.6.30.9-90.fc11.x86_64
>
> Any ideas?  Am I doing something wrong or is this a bug?

A bug since a program should never crash like this.

I can reproduce it, now handled via trac at:
http://trac.osgeo.org/grass/ticket/801

Hope we find a solution soon.

Markus


More information about the grass-user mailing list