|
@@ -3,26 +3,43 @@
|
|
|
<em>v.split</em> split vector lines into shorter segments using a
|
|
|
maximal distance between nodes.
|
|
|
|
|
|
-<h2>EXAMPLE</h2>
|
|
|
+<h2>EXAMPLES</h2>
|
|
|
|
|
|
-Spearfish location:
|
|
|
+The examples are based on the North Carolina sample data location.
|
|
|
|
|
|
-<div class="code"><pre>
|
|
|
-# insert kilometric nodes to railroad map:
|
|
|
-v.extract railroads out=myrr list=1
|
|
|
+<h3>Example 1: Inserting kilometric nodes to railroad map</h3>
|
|
|
|
|
|
-# join segments into polyline
|
|
|
-v.build.polylines myrr out=myrr_pol
|
|
|
-v.category myrr out=myrailroads option=add
|
|
|
+<div class="code"><pre>
|
|
|
+# extract data for this example
|
|
|
+v.extract railroads out=myrr cats=1
|
|
|
|
|
|
# show line, category, direction (to find the beginning)
|
|
|
-d.vect myrailroads disp=shape,cat,dir
|
|
|
+d.vect myrr disp=shape,cat,dir
|
|
|
|
|
|
# insert nodes at 1000m distance (max)
|
|
|
-v.split railroads out=myrailroads_split length=1000
|
|
|
-d.vect myrailroads_split disp=shape,topo
|
|
|
+v.split myrr out=mrr_split length=1000
|
|
|
+d.vect myrr_split disp=shape,topo
|
|
|
+</pre></div>
|
|
|
+
|
|
|
+Note: In case the data is not a polyline, build polylines in second step, eg.:
|
|
|
+
|
|
|
+<div class="code"><pre>
|
|
|
+# join segments into polyline
|
|
|
+v.build.polylines myrr out=myrr_poly
|
|
|
+v.category myrr_pol out=myrailroads option=add
|
|
|
</pre></div>
|
|
|
|
|
|
+<h3>Example 2: Inserting kilometric vertices to railroad map</h3>
|
|
|
+
|
|
|
+Note: first run the two steps from example 1.
|
|
|
+
|
|
|
+<div class="code"><pre>
|
|
|
+# insert vertices at 1000m distance (max)
|
|
|
+v.split -n myrr out=myrr_split length=1000
|
|
|
+d.vect myrr_split disp=shape,topo
|
|
|
+</pre></div>
|
|
|
+
|
|
|
+
|
|
|
<h2>SEE ALSO</h2>
|
|
|
|
|
|
<em>
|