[GRASS-user] using v.net.path output to update original map

Christopher Mire cnm3332 at gmail.com
Fri Jan 30 11:29:10 EST 2009


I have a problem that I not sure how to correctly address.  Basically I have
vector map and I
find some shortest paths on it using v.net.path.  I basically want to keep
track of which lines have
been using in the shortests paths and how many times.  So I suppose I need
to add a column
to original map called traversed, which starts at zero, and is incremented
by one every time
that line is used in a shortest path.

So I have a vector map output from v.net.path, which contains a single
attribute, and have option of
the vector map being a single line, or the lines which were in original map.
Is there a way to match the lines in the original map with the lines in the
shortest path, and update the traversed attribute for that row in the
original map?  Would I have to add traversed column to shortest path map,
get value from original somehow, increment, and then merge vector maps?

Any ideas would be appreciated. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090131/dfcc4058/attachment.html


More information about the grass-user mailing list