[GRASS-SVN] r68036 - grass/branches/releasebranch_7_0/vector/v.to.points
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 10 08:47:42 PST 2016
Author: neteler
Date: 2016-03-10 08:47:42 -0800 (Thu, 10 Mar 2016)
New Revision: 68036
Modified:
grass/branches/releasebranch_7_0/vector/v.to.points/v.to.points.html
Log:
v.to.points manual: new NC data example
Modified: grass/branches/releasebranch_7_0/vector/v.to.points/v.to.points.html
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.to.points/v.to.points.html 2016-03-10 16:47:07 UTC (rev 68035)
+++ grass/branches/releasebranch_7_0/vector/v.to.points/v.to.points.html 2016-03-10 16:47:42 UTC (rev 68036)
@@ -9,7 +9,7 @@
The output is a vector map with 2 layers. Layer 1 holds the category
of the input features; all points created along the same line have the
same category, equal to the category of that line. In layer 2 each
-point has it's unique category; other attributes stored in layer 2
+point has its unique category; other attributes stored in layer 2
are <em>lcat</em> - the category of the input line and <em>along</em>
- the distance from line's start.
@@ -84,18 +84,25 @@
(length of input line / 2) <= <em>dmax</em> <= length of input line
</pre></div>
-So if <b>dmax</b> is between 0.5x and 1.0x the line length, you will
+Hence, if <b>dmax</b> is between 0.5x and 1.0x the line length, you will
always get points created at exactly the beginning, middle and end of
the input line.
<h2>EXAMPLE</h2>
-In this example, the 't_powerlines' vector lines map in the
-<a href="http://grass.osgeo.org/download/data6.php">Spearfish 6</a>
-location is used to create points along the input lines:
+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>
-v.to.points in=t_powerlines out=t_powerlines_points dmax=120
+# 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
+
+# verify the two layers in the resulting map
+v.category railroads_nodes option=report
+
+# vector info
+v.info railroads_nodes
</pre></div>
<h2>SEE ALSO</h2>
More information about the grass-commit
mailing list