Browse Source

v.to.points: add new examples to manual

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74284 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 years ago
parent
commit
f177c70ce0
1 changed files with 20 additions and 5 deletions
  1. 20 5
      vector/v.to.points/v.to.points.html

+ 20 - 5
vector/v.to.points/v.to.points.html

@@ -91,21 +91,36 @@ the input line.
 <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>