<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://grasswiki.osgeo.org/w/index.php?action=history&amp;feed=atom&amp;title=Streams_extraction_from_streams_map</id>
	<title>Streams extraction from streams map - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://grasswiki.osgeo.org/w/index.php?action=history&amp;feed=atom&amp;title=Streams_extraction_from_streams_map"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Streams_extraction_from_streams_map&amp;action=history"/>
	<updated>2026-04-13T20:54:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Streams_extraction_from_streams_map&amp;diff=9013&amp;oldid=prev</id>
		<title>Neteler: new</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Streams_extraction_from_streams_map&amp;diff=9013&amp;oldid=prev"/>
		<updated>2009-06-05T20:36:08Z</updated>

		<summary type="html">&lt;p&gt;new&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Q:''' I have a network of streams (say, Spearfish or better the new NC data set at http://www.grassbook.org/data_menu3rd.php ) and want to extract a single stream system. Names are lacking,   is there any trick to extract topologically connected lines      into a new map?                                                 &lt;br /&gt;
&lt;br /&gt;
'''A:''' Use {{cmd|v.net.iso}} since disconnected networks will have infinite cost.&lt;br /&gt;
                                                                       &lt;br /&gt;
Spearfish example:                                                    &lt;br /&gt;
&lt;br /&gt;
 g.region vect=streams&lt;br /&gt;
 d.mon 0&lt;br /&gt;
 d.vect streams disp=shape,dir&lt;br /&gt;
 &lt;br /&gt;
 # find coordinates&lt;br /&gt;
 d.where&lt;br /&gt;
 &lt;br /&gt;
 # work on map copy&lt;br /&gt;
 g.copy vect=streams,mystreams&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;602042|4927928&amp;quot; | v.in.ascii out=outlet --o&lt;br /&gt;
 v.distance -p from=outlet to=mystreams out=connect upload=dist column=dist --o&lt;br /&gt;
 &lt;br /&gt;
 v.patch in=mystreams,connect,outlet out=streams_n --o&lt;br /&gt;
 v.clean streams_n out=streams_net tool=snap,break thresh=5,0 --o&lt;br /&gt;
 &lt;br /&gt;
 g.region vect=streams_net&lt;br /&gt;
 d.erase&lt;br /&gt;
 d.vect streams_net&lt;br /&gt;
 d.vect streams_net type=point col=red icon=basic/triangle&lt;br /&gt;
 &lt;br /&gt;
 v.net.iso streams_net out=myriver ccats=1 costs=99999999 nlayer=1 --o&lt;br /&gt;
 &lt;br /&gt;
 v.category myriver option=report&lt;br /&gt;
 # The network is of 2 categories&lt;br /&gt;
 # show selected river network&lt;br /&gt;
 d.vect myriver col=blue  cats=1&lt;br /&gt;
 d.vect myriver col=green cats=2&lt;br /&gt;
 &lt;br /&gt;
 # now v.extract etc ...&lt;br /&gt;
&lt;br /&gt;
Note that some upper parts of the river network are not found due to unconnected lines.&lt;br /&gt;
&lt;br /&gt;
[[Category: FAQ]]&lt;/div&gt;</summary>
		<author><name>Neteler</name></author>
	</entry>
</feed>