[GRASS-user] Use v.net.path to generate shortest path MATRIX?
Jachym Cepicky
jachym.cepicky at gmail.com
Thu Feb 14 15:05:39 EST 2008
Hi,
script would be the best. v.net.path can read start and end coordinates
from stdin:
echo "1 startx,starty,endx,endy"|v.net.path in=network out=path
it should be possible, run with v.out.ascii output from your point file
for point in `v.out.ascii in=point`; do
echo $point |grep|sed|awk|perl|python| v.net.path in=streams out=pathX
done
jachym
Rick Reeves píše v Čt 14. 02. 2008 v 11:52 -0800:
>
> Hello:
>
> Perhaps someone can direct me to the correct GRASS function(s)
> for accomplishing the following analysis (Ive read the documentation,
> am still unsure which, if any, GRASS tools will do the job):
>
> I have stream network data, in ArcMap line Shape File format, acquired from
> the USGS NHP2 dataset. The network data includes distance in Km.
> And, I have a point shape file containing the coordinates
> of lakes in the same region.
>
> I would like to generate an 'n x n' shortest path matrix between all of
> the 'n' lakes using the
> stream network distances.
>
> It looks like v.net.path is the correct function to use, judging from
> the manual page.
> My actual question: Is there a way to skip the command line input of
> start/end points
> and use the point shape file as the source, so that a shortest path
> matrix is created?
>
> I suppose I could write a script to do this, but only if necessary.
>
> Thanks for any suggestions!
> Rick Reeves
>
> Looks like I have to represent streams and lakes as separate vector layers
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20080214/26087494/attachment.bin
More information about the grass-user
mailing list