[GRASSLIST:657] Re: Shortest distance routing

Miha STAUT mihastaut at hotmail.com
Tue Jul 8 16:22:33 EDT 2003


>can somebody point me to some information on how to work with network (esp. 
>road network) analysis in GRASS. Let's consider I have a vector databases 
>of a city's road network and want to find out the shortest distance between 
>point A and B.
>
>All I can find by looking at the docs and searching through google are more 
>or less surface runoff routing examples.

It could be taking a bit longer but:

v.to.rast in=road.map out=road.map
# all the roads have the same id or for time distance different speed limits 
different inverse factor so: 1/ # (speed limit)
r.coast in=road.map out=road.distance
r.drain in=road.distance out=shortest.path coord=x,y

Hope it helps.

Miha Staut

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail




More information about the grass-user mailing list