[GRASS-user] Cost Path

Roberto Marzocchi roberto.marzocchi at gmail.com
Wed Feb 8 12:08:56 EST 2012

I have resolved with:

r.walk -k elevation=your_dtm friction=your_friction
output=*walkout*start_points=A stop_points=B


r.drain -c input=*walkout* output=drainout vector_points=B

perhaps it is need a filling of the dtm and also of walkout map in order to
avoid aq loop effect

All the best,

2012/2/7 Moritz Lennert <mlennert a club.worldonline.be>

> On 07/02/12 14:39, ALT SHN wrote:
>> Hello list,
>> I have a raster obtained through r.mapcalc whose cells values represent
>> friction or cost.
> I suppose that is friction per cell.
>  To finish my study I'm lacking one final step - calculate the least cost
>> path!
>> How do I do it? I've tried r.cost but the result is not wat I expected -
>> My desired output is just a line from A to B, crossing the least valued
>> cells.
> Use r.cost with the coordinate of (or the vector or raster file
> containing) A as start point. Then r.drain with B as starting point.
> Moritz
> ______________________________**_________________
> grass-user mailing list
> grass-user a lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/grass-user<http://lists.osgeo.org/mailman/listinfo/grass-user>
-------------- parte successiva --------------
Un allegato HTML ? stato rimosso...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120208/63288a08/attachment.html

More information about the grass-user mailing list