[GRASS-SVN] r74284 - grass/trunk/vector/v.to.points

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 17 13:17:19 PDT 2019


Author: martinl
Date: 2019-03-17 13:17:19 -0700 (Sun, 17 Mar 2019)
New Revision: 74284

Modified:
   grass/trunk/vector/v.to.points/v.to.points.html
Log:
v.to.points: add new examples to manual

Modified: grass/trunk/vector/v.to.points/v.to.points.html
===================================================================
--- grass/trunk/vector/v.to.points/v.to.points.html	2019-03-17 19:45:18 UTC (rev 74283)
+++ grass/trunk/vector/v.to.points/v.to.points.html	2019-03-17 20:17:19 UTC (rev 74284)
@@ -91,23 +91,38 @@
 <p>
 Use the <b>-r</b> flag to create points starting from the end node.
 
-<h2>EXAMPLE</h2>
+<h2>EXAMPLES</h2>
 
+<h3>Points along the input lines</h3>
 In this example, the 'railroads' vector lines map of the North Carolina
 sample dataset is used to create points along the input lines:
 
 <div class="code"><pre>
 # The North Carolina data are metric.
-# 200m distance for nodes (maximum limit but not an exact distance)
-v.to.points railroads output=railroads_nodes use=node dmax=200
+# 200m distance for points (maximum limit but not an exact distance)
+v.to.points input=railroads output=railroads_points dmax=200
 
 # verify the two layers in the resulting map
-v.category railroads_nodes option=report
+v.category map=railroads_points option=report
 
 # vector info
-v.info railroads_nodes
+v.info map=railroads_points
 </pre></div>
 
+<h3>Extract nodes as points</h3>
+
+<div class="code"><pre>
+v.to.points input=railroads output=railroads_nodes use=node
+</pre></div>
+
+<h3>Extract starting/ending nodes as points</h3>
+
+<div class="code"><pre>
+v.to.points input=railroads output=railroads_start use=start
+
+v.to.points input=railroads output=railroads_end use=end    
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>



More information about the grass-commit mailing list