Hi All,<div><br></div><div>I have a friction map, a start polygon and an end polygon and would like to find the least cost path, meaning not a corridor but a thin line. To now I've tried both r.cost and r.walk and r.drain eventually, but the result of this latter </div>
<div><br></div><div>r.drain input=friction@PERMANENT output=rdrain_out vector_points=start_line@PERMANENT</div><div><br></div><div>is a path calculated *within* the start polygon (a closed line).</div><div>I suppose this is because I don't provide a direction map to r.drain (I'm using GRASS 7). I read:</div>
<div><br></div><div><span style="font-family:arial,sans-serif;font-size:medium;background-color:rgb(255,255,255)">If the </span><b style="font-family:arial,sans-serif;font-size:medium">input</b><span style="font-family:arial,sans-serif;font-size:medium;background-color:rgb(255,255,255)"> surface (a raster map layer) is a cumulative cost map generated by the </span><em style="font-family:arial,sans-serif;font-size:medium"><a href="http://grass.osgeo.org/grass70/manuals/r.walk.html">r.walk</a></em><span style="font-family:arial,sans-serif;font-size:medium;background-color:rgb(255,255,255)"> or </span><em style="font-family:arial,sans-serif;font-size:medium"><a href="http://grass.osgeo.org/grass70/manuals/r.cost.html">r.cost</a></em><span style="font-family:arial,sans-serif;font-size:medium;background-color:rgb(255,255,255)"> modules, the -d flag and a movement direction surface </span><b style="font-family:arial,sans-serif;font-size:medium">"indir" </b><span style="font-family:arial,sans-serif;font-size:medium;background-color:rgb(255,255,255)">must be specified.</span></div>
<div><br></div><div>I assume it's a kind of flow direction or aspect, but what is the physical meaning, and how can I calculate it? Could anyone please provide some further info. </div><div><br></div><div>Thank you in advance</div>
<div><br></div><div>Madi</div><div><br clear="all"><div><br></div>-- <br><div><div><font color="#666666">Margherita DI LEO    </font></div><div><font color="#666666">Postdoctoral Researcher</font></div><div><font color="#666666"><br>
</font></div><div><font color="#666666">European Commission - DG JRC </font></div><div><font color="#666666">Institute for Environment and Sustainability (IES). Unit H03 – FRC</font></div><div><font color="#666666">Via Fermi, 2749</font></div>
<div><font color="#666666">I-21027 Ispra (VA) - Italy - TP 261</font></div><div><font color="#666666">       </font></div><div><font color="#666666">Tel. +39 0332 78 3600   </font></div><div><font color="#666666"><a href="mailto:margherita.di-leo@jrc.ec.europa.eu" target="_blank">margherita.di-leo@jrc.ec.europa.eu</a></font></div>
<div><font color="#666666"><br></font></div><div><font color="#666666">Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.</font></div>
</div>
</div>