v.lrs.segment1grass
Creates points/segments from input lines, linear reference system and positions read from stdin or a file.
Usage
v.lrs.segment
v.lrs.segment --help
v.lrs.segment input=name
output=name
[llayer=string]
[rsdriver=string]
[rsdatabase=string]
rstable=string
[file=name]
[--overwrite]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
vector, linear reference system, network
Overview
v.lrs.segment creates points/segments from input lines, linear reference system and positions read from standard in or a file.
The format is as follows:
P <point_id> <line_id> <milepost>+<offset> [<side offset>]L <segment_id> <line_id> <milepost>+<offset> <milepost>+<offset> [<side offset>]
Notes
For more information and examples see the help page for v.lrs.segment’s sister module, v.segment.
Examples
This example is written for the Spearfish dataset (it continues the example from v.lrs.create).
In this example, the ’route_lrs’ shall be extended for a new position (point) along the LRS after bus stop 4:
# new point on LRSecho "P 7 22 4+180" | v.lrs.segment route_lrs out=route_lrs_new rstable=route_lrsg.region vector=route_lrs n=n+100 s=s-100 -pd.erase# existing LRSd.vect route_lrsd.vect busstops disp=attr attr=cat size=10 bg=white lcol=blue yref=bottomd.vect busstops icon=basic/circle fcol=bluedb.select table=route_lrs# show modified mapd.vect route_lrs_new col=red
Todo
Figure out how to merge result into existing LRS map and table.
Source code
Available at: v.lrs.segment source code (history)
Accessed: Monday Feb 24 17:51:17 2025
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
9 releases since Debian 5.0 (Lenny); the text changed 8 times.