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 lines
  • output=name [required] β€” the output vector map where the stationing gets written
  • llayer=string β€” layer number or name, aka the line layer. Default: 1
  • rsdriver=string β€” driver name for the reference system table. Options: dbf, mysql, odbc, ogr, pg, sqlite. Default: sqlite
  • rsdatabase=string β€” database name for the reference system table. Default: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
  • rstable=string [required] β€” the name of the reference system table
  • labels=string β€” label file
  • offset=string[,string,...] β€” PM left, MP right, stationing left, stationing right offset. Default: 50,100,25,25
  • xoffset=float β€” offset label in label x-direction, in map units. Default: 25
  • yoffset=float β€” offset label in label y-direction, in map units. Default: 5
  • reference=string β€” reference position. Options: center, left, right, upper, lower. Default: center
  • font=string β€” the font. Default: standard
  • size=integer β€” label size (in map-units). Options: 1-1000. Default: 100
  • color=name β€” text color. Either a standard color name or an R:G:B triplet. Default: black
  • width=integer β€” line width of text. Only for d.label output. Options: 1-100. Default: 1
  • highlight_color=name β€” highlight color for text. Either a standard color name, an R:G:B triplet, or "none". Default: none
  • highlight_width=integer β€” line width of highlight color. Only for d.label output. Options: 0-100. Default: 0
  • bgcolor=name β€” background color. Either a standard color name, an R:G:B triplet, or "none". Default: none
  • border=name β€” border color. Either a standard color name, an R:G:B triplet, or "none". Default: none
  • opaque=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