<div dir="ltr"><div><div>Wow, that was fast. I was just about to reply the I found out I should put the ports as starting points. And that is clearly stated in the manual<br><br><a href="https://grass.osgeo.org/grass70/manuals/r.cost.html#shortest-distance-surfaces">https://grass.osgeo.org/grass70/manuals/r.cost.html#shortest-distance-surfaces</a><br><br></div>Thanks all<br></div>Cheers<br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 10, 2017 at 2:21 PM Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le Fri, 10 Nov 2017 16:03:45 +0000,<br>
Daniel Victoria <<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>> a écrit :<br>
<br>
> Hi list,<br>
><br>
> I want to calculate a cost of getting from any cell in my raster to<br>
> some ports, considering roads network, and I though r.cost could<br>
> solve this.<br>
><br>
> What I have is:<br>
> 1) Cost raster map with cost per cell (10 for normal cells, 1 if it's<br>
> a road)<br>
> 2) vector map containing several ports<br>
> 3) start_raster has the same extent of the cost raster, but all cells<br>
> == 1<br>
><br>
> This is the command I'm using<br>
> r.cost input=cost_map output=cum_cost stop_points=ports<br>
> start_raster=my_region<br>
<br>
Just try it with r.cost input=cost_map output=cum_cost<br>
start_points=ports<br>
<br>
Moritz<br>
</blockquote></div>