<div>I have resolved with: </div><div><br></div>r.walk -k elevation=your_dtm friction=your_friction output=<i>walkout</i> start_points=A stop_points=B<div><br></div><div>afterwards </div><div><br></div><div>r.drain -c input=<i>walkout</i> output=drainout vector_points=B</div>
<div><br></div><div>perhaps it is need a filling of the dtm and also of walkout map in order to avoid aq loop effect</div><div><br></div><div>All the best,</div><div>Roberto </div><div><br><br><div class="gmail_quote">2012/2/7 Moritz Lennert <span dir="ltr">&lt;<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 07/02/12 14:39, ALT SHN wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello list,<br>
<br>
I have a raster obtained through r.mapcalc whose cells values represent<br>
friction or cost.<br>
</blockquote>
<br></div>
I suppose that is friction per cell.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To finish my study I&#39;m lacking one final step - calculate the least cost<br>
path!<br>
<br>
How do I do it? I&#39;ve tried r.cost but the result is not wat I expected -<br>
My desired output is just a line from A to B, crossing the least valued<br>
cells.<br>
</blockquote>
<br></div>
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.<br>
<br>
Moritz<br>
______________________________<u></u>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/grass-user</a><br>
</blockquote></div><br></div>