v.lrs.label(1grass)
β¨ NAME β¨
v.lrs.label β bestie, this is the GRASS module that creates stationing from input lines, and linear reference system. It's part of the GRASS User's Manual, and it's giving mapping-genius energy π
π·οΈ KEYWORDS π·οΈ
vector, linear reference system, network
πΈ SYNOPSIS πΈ
v.lrs.label
v.lrs.label --help
v.lrs.label input=name output=name [llayer=string] [rsdriver=string]
[rsdatabase=string] rstable=string [labels=string]
[offset=string[,string,...]] [xoffset=float] [yoffset=float]
[reference=string] [font=string] [size=integer] [color=name]
[width=integer] [highlight_color=name] [highlight_width=integer]
[bgcolor=name] [border=name] [opaque=string] [--overwrite]
[--help] [--verbose] [--quiet] [--ui]
π Flags
--overwriteβ lets your output files just bulldoze right over any existing files, no questions asked π€--helpβ prints the usage summary, like a lil cheat sheet--verboseβ makes the module talk a lot more, verbose module output--quietβ shhh π€« quiet module output--uiβ forces the GUI dialog to launch
π Parameters
input=name[required] β name of the input vector map; this is the vector map that actually contains the linesoutput=name[required] β the output vector map where the stationing gets writtenllayer=stringβ layer number or name, aka the line layer. Default:1rsdriver=stringβ driver name for the reference system table. Options:dbf,mysql,odbc,ogr,pg,sqlite. Default:sqlitersdatabase=stringβ database name for the reference system table. Default:$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.dbrstable=string[required] β the name of the reference system tablelabels=stringβ label fileoffset=string[,string,...]β PM left, MP right, stationing left, stationing right offset. Default:50,100,25,25xoffset=floatβ offset label in label x-direction, in map units. Default:25yoffset=floatβ offset label in label y-direction, in map units. Default:5reference=stringβ reference position. Options:center,left,right,upper,lower. Default:centerfont=stringβ the font. Default:standardsize=integerβ label size (in map-units). Options:1-1000. Default:100color=nameβ text color. Either a standard color name or anR:G:Btriplet. Default:blackwidth=integerβ line width of text. Only ford.labeloutput. Options:1-100. Default:1highlight_color=nameβ highlight color for text. Either a standard color name, anR:G:Btriplet, or"none". Default:nonehighlight_width=integerβ line width of highlight color. Only ford.labeloutput. Options:0-100. Default:0bgcolor=nameβ background color. Either a standard color name, anR:G:Btriplet, or"none". Default:noneborder=nameβ border color. Either a standard color name, anR:G:Btriplet, or"none". Default:noneopaque=stringβ opaque to vector. Only relevant if background color is selected. Options:yes,no. Default:yes
π¦ DESCRIPTION π¦
v.lrs.label generates LRS labels so your LRS looks pretty-printed and adorable β¨. This example is written for the Spearfish dataset (and it continues the example from v.lrs.create, so it's a whole saga, iykyk).
v.lrs.label route_lrs rstable=route_lrs output=route_lrs_labels \
labels=labels col=red size=50 xoffset=100
g.region vector=route_lrs n=n+100 s=s-100 -p
d.erase
d.vect route_lrs
d.vect route_lrs_labels col=grey type=line
d.vect busstops disp=attr attr=cat size=10 bg=white lcol=green yref=bottom
d.vect busstops icon=basic/circle fcol=green
d.labels labels
π SEE ALSO π
v.lrs.create, v.lrs.segment, v.lrs.where, d.labels, v.label
LRS tutorial, Introducing the Linear Reference System in GRASS
π AUTHORS π
- Radim Blazek, ITC-irst/MPA Solutions
- Documentation update (based on above journal article and available fragments): Markus Neteler
πΎ SOURCE CODE πΎ
Available at: v.lrs.label source code (history)
Latest change: Friday May 09 14:33:40 2025 in commit: b356c7e108fcbeca77474c8e83ebec8f1e7b3e4a
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual π
okay bestie that's the whole page, no cap β GRASS 8.5.0, v.lrs.label(1grass), mwah, slay, go label some roads π«Άβ¨
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms