[GRASS-user] The algorithm r.cost is not working
Elisa Solano Villareal
villareal at fbk.eu
Wed Feb 22 05:31:48 EST 2012
Thanks for your answer.
> The cost surface used as input
> for r.cost must have only positive values, negative values will cause
> infinite loops. Please make sure your input cost surface has only
but we have seen our data and it doesn't have negative values, the minimun value is 0.
> r.cost has changed a bit lately, in particular since GRASS version
> 6.4.0. Please use 6.4.2 if possible.
We did it but.. we found this message r.cost: malloc.c:4471: _int_malloc: Assertion '(bck->size & 0x4) == 0' failed.
Please, can you give more information.
Thanking you in advance,
From: Markus Metz [markus.metz.giswork at googlemail.com]
Sent: Tuesday, February 14, 2012 12:39 PM
To: Elisa Solano Villareal
Cc: grass-user at lists.osgeo.org
Subject: Re: [GRASS-user] The algorithm r.cost is not working
On Tue, Feb 14, 2012 at 11:56 AM, Elisa Solano Villareal
<villareal at fbk.eu> wrote:
> Hi there,
> I have a question, I am working with r.cost algotithm but is not running for my whole spatial data but when a put just a piece of the map it works.
> The main problem is that the algorithm does not finish, but it seems as keeping running 112%, 115%,120%...
> My version is 6.4 and the bigest cost raster size is 6085, 6823 for the starting points are 1727.
r.cost has changed a bit lately, in particular since GRASS version
6.4.0. Please use 6.4.2 if possible. The cost surface used as input
for r.cost must have only positive values, negative values will cause
infinite loops. Please make sure your input cost surface has only
positive values. If the problem persists, it would be great if you
could provide a sample script and/or sample data to reproduce the
problem. At least in 6.4.2 r.cost is working fine.
> Grass showed also this message: Dev note: Adapted sites library used for vector points. (module should be updated to GRASS 6 vector library). As the matter of fact, we are no sure if it is the real problem.
No, this is not a problem.
More information about the grass-user