[GRASS-SVN] r59320 - grass/trunk/vector/v.split
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 24 14:06:25 PDT 2014
Author: neteler
Date: 2014-03-24 14:06:25 -0700 (Mon, 24 Mar 2014)
New Revision: 59320
Modified:
grass/trunk/vector/v.split/v.split.html
Log:
v.split manual: new NC examples (contributed by Milena Nowotarska)
Modified: grass/trunk/vector/v.split/v.split.html
===================================================================
--- grass/trunk/vector/v.split/v.split.html 2014-03-24 19:39:30 UTC (rev 59319)
+++ grass/trunk/vector/v.split/v.split.html 2014-03-24 21:06:25 UTC (rev 59320)
@@ -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.
+<h3>Example 1: Inserting kilometric nodes to railroad map</h3>
+
<div class="code"><pre>
-# insert kilometric nodes to railroad map:
-v.extract railroads out=myrr list=1
+# extract data for this example
+v.extract railroads out=myrr cats=1
-# join segments into polyline
-v.build.polylines myrr out=myrr_pol
-v.category myrr out=myrailroads option=add
-
# 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>
More information about the grass-commit
mailing list