[GRASS-user] Calculating cost to port

Moritz Lennert mlennert at club.worldonline.be
Fri Nov 10 08:21:30 PST 2017


Le Fri, 10 Nov 2017 16:03:45 +0000,
Daniel Victoria <daniel.victoria at gmail.com> a écrit :

> Hi list,
> 
> 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.
> 
> What I have is:
> 1) Cost raster map with cost per cell (10 for normal cells, 1 if it's
> a road)
> 2) vector map containing several ports
> 3) start_raster has the same extent of the cost raster, but all cells
> == 1
> 
> This is the command I'm using
> r.cost input=cost_map output=cum_cost stop_points=ports
> start_raster=my_region

Just try it with r.cost input=cost_map output=cum_cost
start_points=ports

Moritz


More information about the grass-user mailing list