[GRASSLIST:651] Re: Shortest distance routing

Buchan Milne bgmilne at cae.co.za
Tue Jul 8 08:10:17 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Pucher wrote:
> Hi, just a quick question,
>
> 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.
>

You need grass51 (from cvs), which has the dglib library and some tools
that use it, such as d.path.

http://mpa.itc.it/radim/g51/d.path.jpg

I am using this kind of functionality (I can't discuss the big picture
behind it on the list, but maybe in private), and have been working on
modifying d.path (renamed to v.path) to be a bit more friendly for my
purposes (I would like to extract information on the actual segments,
which d.path does not do, just displays it in the monitor), with a flag
to display the results on the monitor (to check results).

At present, d.path allows you to click on the monitor to select start
and end, my v.path takes an unlimited number of coordinate pairs as an
argument, and will make find the shortest path that goes through the
points in order (ie not a travelling salesman problem, which would
re-arrange the order).

I haven't finalised all the interfaces for v.path, so it may be possible
for me to adjust it to suit what others would like from it.

Regards,
Buchan

- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/CrSprJK6UGDSBKcRAj99AKCsfo+QLwsO+ReWU18pFuBRJ8kILACeIhef
m51DoJ/swgxg2afeTfs0Np8=
=OhnQ
-----END PGP SIGNATURE-----

******************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to info at cae.co.za for a copy.
******************************************************************




More information about the grass-user mailing list