<div dir="ltr"><div><div><div><div><div>Hi list,<br><br></div>I want to calculate a cost of getting from any cell in my raster to some ports, considering roads network, and I though r.cost could solve this.<br><br></div>What I have is:<br></div>1) Cost raster map with cost per cell (10 for normal cells, 1 if it's a road)<br></div>2) vector map containing several ports<br></div>3) start_raster has the same extent of the cost raster, but all cells == 1<br><div><br></div><div>This is the command I'm using<br>r.cost input=cost_map output=cum_cost stop_points=ports start_raster=my_region</div><div><br></div><div>However, my results is a map will all values equal zero. Is it because the stop_points in ports lay inside my start_raster? Thus r.cost reaches the stop point right from the start?</div><div><br></div><div>My final result should be a map of distance to ports considering the roads network.</div><div><br></div><div>Cheers</div><div>Daniel<br></div></div>