File: v.lrs.segment.html

package info (click to toggle)
grass 7.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 162,508 kB
  • sloc: ansic: 431,228; python: 177,861; cpp: 36,106; sh: 9,664; makefile: 6,707; xml: 3,596; sql: 769; lex: 519; yacc: 450; asm: 387; perl: 282; sed: 17; objc: 7
file content (63 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<h2>DESCRIPTION</h2>

<em>v.lrs.segment</em> creates points/segments from input lines,
linear reference system and positions read from <tt>standard in</tt>
or a file.
<p>
The format is as follows:<br>

<div class="code"><pre>
P &lt;point_id&gt; &lt;line_id&gt; &lt;milepost&gt;+&lt;offset&gt; [&lt;side offset&gt;]
L &lt;segment_id&gt; &lt;line_id&gt; &lt;milepost&gt;+&lt;offset&gt; &lt;milepost&gt;+&lt;offset&gt; [&lt;side offset&gt;]
</pre></div>

<h2>NOTES</h2>

For more information and examples see the help page for <em>v.lrs.segment</em>'s
sister module, <em><a href="v.segment.html">v.segment</a></em>.

<h2>EXAMPLE</h2>

This example is written for the Spearfish dataset (it continues the example
from <em>v.lrs.create</em>).
<p>
In this example, the 'route_lrs' shall be extended for a new
position (point) along the LRS after bus stop 4:

<div class="code"><pre>
# new point on LRS
echo "P 7 22 4+180" | v.lrs.segment route_lrs out=route_lrs_new rstable=route_lrs

g.region vector=route_lrs n=n+100 s=s-100 -p
d.erase
# existing LRS
d.vect route_lrs
d.vect busstops disp=attr attr=cat size=10 bg=white lcol=blue yref=bottom
d.vect busstops icon=basic/circle fcol=blue
db.select table=route_lrs

# show modified map
d.vect route_lrs_new col=red
</pre></div>

<h2>TODO</h2>

Figure out how to merge result into existing LRS map and table.

<h2>SEE ALSO</h2>

<em>
<a href="lrs.html">LRS tutorial</a>,<br>
<a href="http://gisws.media.osaka-cu.ac.jp/grass04/viewpaper.php?id=50">Introducing the Linear Reference System in GRASS</a>,<br>
<a href="v.lrs.create.html">v.lrs.create</a>,
<a href="v.lrs.where.html">v.lrs.where</a>,
<a href="v.lrs.label.html">v.lrs.label</a>,
<a href="v.segment.html">v.segment</a>
</em>

<h2>AUTHOR</h2>

Radim Blazek

<p>
<i>Last changed: $Date: 2015-12-17 15:38:13 +0100 (Thu, 17 Dec 2015) $</i>