<?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=Vector_break_line_intersections</id>
	<title>Vector break line intersections - 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=Vector_break_line_intersections"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Vector_break_line_intersections&amp;action=history"/>
	<updated>2026-04-05T05:07:36Z</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=Vector_break_line_intersections&amp;diff=23636&amp;oldid=prev</id>
		<title>Neteler: Draft FAQ from https://lists.osgeo.org/pipermail/grass-user/2016-September/074866.html</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Vector_break_line_intersections&amp;diff=23636&amp;oldid=prev"/>
		<updated>2016-10-03T09:24:30Z</updated>

		<summary type="html">&lt;p&gt;Draft FAQ from https://lists.osgeo.org/pipermail/grass-user/2016-September/074866.html&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Example of breaking a vector line at intersections ==&lt;br /&gt;
&lt;br /&gt;
Q: I have a vector line map (river network) which I want to clean and break the lines at intersections. How to manage the categories?&lt;br /&gt;
&lt;br /&gt;
A: Using GRASS v.clean tool:&lt;br /&gt;
&lt;br /&gt;
   # Cleaning vector and breaking lines&lt;br /&gt;
   v.clean -c --overwrite input=river_network_modified output=river_network_modified_clean tool=break,snap,rmline threshold=0,50,0&lt;br /&gt;
   &lt;br /&gt;
   # Check cats&lt;br /&gt;
   v.category input=river_network_modified_clean option=report layer=-1&lt;br /&gt;
&lt;br /&gt;
Now add new categories to a new layer, e.g. with&lt;br /&gt;
&lt;br /&gt;
   v.category option=add layer=2 cat=1 step=1 type=line ...&lt;br /&gt;
&lt;br /&gt;
Then add a new table to layer 2&lt;br /&gt;
&lt;br /&gt;
   v.db.addtable layer=2 columns=&amp;quot;cat_lyr1 integer&amp;quot; ...&lt;br /&gt;
&lt;br /&gt;
Load category values (or any other attributes) from layer 1 to layer 2 with&lt;br /&gt;
&lt;br /&gt;
   v.to.db layer=2 column=cat_lyr1 query_layer=1 query_column=cat ...&lt;br /&gt;
&lt;br /&gt;
Now you have unique new categories in layer 2 and the old categories still existing in layer 1 are also in the field ''cat_lyr1'' of layer 2.&lt;br /&gt;
&lt;br /&gt;
[[Category: FAQ]]&lt;br /&gt;
[[Category:Vector]]&lt;/div&gt;</summary>
		<author><name>Neteler</name></author>
	</entry>
</feed>