https://grasswiki.osgeo.org/w/index.php?title=Vector_extract_upstream_network&feed=atom&action=historyVector extract upstream network - Revision history2024-03-28T13:14:29ZRevision history for this page on the wikiMediaWiki 1.41.0https://grasswiki.osgeo.org/w/index.php?title=Vector_extract_upstream_network&diff=20910&oldid=prevNeteler: New, from http://lists.osgeo.org/pipermail/grass-user/2013-June/068409.html2014-11-05T10:44:52Z<p>New, from http://lists.osgeo.org/pipermail/grass-user/2013-June/068409.html</p>
<p><b>New page</b></p><div>'''Q:''' How to extract the entire network upstream a given point on the river network?<br />
<br />
'''A:''' Use {{cmd|v.net.alloc}} for this task:<br />
<br />
Add two columns to the vector network table (layer must be the layer of the lines), one for line length, one for blocking. Upload line length to the column for line length ({{cmd|v.to.db}}). Set the blocking column to -1. <br />
<br />
Run {{cmd|v.net.alloc}}, use the length column as forward cost as the blocking column as backward cost. This should give you the network downstream of the given point. Using the length column as backward cost as the blocking column as forward cost should give you the network upstream of the given point.<br />
<br />
[[Category:FAQ]]<br />
[[Category:Hydrology]]<br />
[[Category:Vector]]</div>Neteler