|
@@ -9,7 +9,7 @@ about <b>type</b> parameter.
|
|
The output is a vector map with 2 layers. Layer 1 holds the category
|
|
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
|
|
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
|
|
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>
|
|
are <em>lcat</em> - the category of the input line and <em>along</em>
|
|
- the distance from line's start.
|
|
- the distance from line's start.
|
|
|
|
|
|
@@ -84,18 +84,25 @@ the <b>-i</b> flag and set <b>dmax</b> so that:
|
|
(length of input line / 2) <= <em>dmax</em> <= length of input line
|
|
(length of input line / 2) <= <em>dmax</em> <= length of input line
|
|
</pre></div>
|
|
</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
|
|
always get points created at exactly the beginning, middle and end of
|
|
the input line.
|
|
the input line.
|
|
|
|
|
|
<h2>EXAMPLE</h2>
|
|
<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>
|
|
<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>
|
|
</pre></div>
|
|
|
|
|
|
<h2>SEE ALSO</h2>
|
|
<h2>SEE ALSO</h2>
|