[GRASS-user] Shortest path for a new road

Wolf Bergenheim wolf+grass at bergenheim.net
Sat Jan 27 03:52:38 EST 2007


Dylan Beaudette wrote:
> Hi Wolf,
> 
> The usual approach in GRASS for this type of problem is:
> 
> 1. define cost surface (slope is commonly used) but a distance map would work 
> as well (r.mapcalc "dist = 1")
> 

I ended up using slope + some other costs added with r.mapcalc to a cost 
surface.

> 2. create cumulative cost map (r.cost) along with the cost surface from step 1
> 

This was the crucial step that I had somehow missed. Thank you very 
much! You have made me a very happy man!

--Wolf

-- 

<:3 )---- Wolf Bergenheim ----( 8:>




More information about the grass-user mailing list