v.label.sa(1)
π v.label.sa π
okay so bestie, welcome to the GRASS GIS User's Manual page for v.label.sa(1) β she's a little legend and she's about to make your labels look so good. sit down, grab a snack π, we're doing this.
β¨ NAME β¨
v.label.sa β create optimally placed labels for vector map(s) π
π·οΈ KEYWORDS π·οΈ
vector, paint labels
π SYNOPSIS π
v.label.sa
v.label.sa --help
v.label.sa map=name [type=string[,string,...]] [layer=string]
column=string labels=name font=string [size=float] [isize=float]
[charset=string] [color=string] [hcolor=string] [hwidth=float]
[background=string] [opaque=yes|no] [border=string] [width=float]
[--help] [--verbose] [--quiet] [--ui]
π© Flags π©
--helpβ print the usage summary, so you know what's up--verboseβ verbose module output (she tells you everything)--quietβ quiet module output (she says nothing, respectfully)--uiβ force launching the GUI dialog, if that's your vibe
π Parameters π
map=name[required] β name of the vector map. Or, plot twist, a data source for direct OGR access.type=string[,string,...]β input feature type. Options:point,line,area. Default:point,line,area(all of them, periodt).layer=stringβ layer number or name. vector features can hold category values in different layers, and this number decides which layer we're using. when you're on direct OGR access, this is the layer name. Default:1.column=string[required] β name of the attribute column that's giving us the label textlabels=name[required] β name for the new paint-label filefont=string[required] β name of the TrueType font (the ones listed in the fontcap, iykyk)size=floatβ label size, in map-units. Default:100.isize=floatβ icon size of point features, in map-units. Default:10.charset=stringβ character encoding (default: UTF-8). Default:UTF-8.color=stringβ text color. Options:aqua,black,blue,brown,cyan,gray,green,grey,indigo,magenta,orange,purple,red,violet,white,yellow. Default:black.hcolor=stringβ highlight color for text. Options:none,aqua,black,blue,brown,cyan,gray,green,grey,indigo,magenta,orange,purple,red,violet,white,yellow. Default:none.hwidth=floatβ width of highlight coloring. Default:0.background=stringβ background color. Options:none,aqua,black,blue,brown,cyan,gray,green,grey,indigo,magenta,orange,purple,red,violet,white,yellow. Default:none.opaque=yes|noβ opaque to vector (only relevant if background color is selected, so don't come for her if nothing happens). Options:yes,no. Default:yes.border=stringβ border color. Options:none,aqua,black,blue,brown,cyan,gray,green,grey,indigo,magenta,orange,purple,red,violet,white,yellow. Default:none.width=floatβ border width (only forps.mapoutput, okurrr). Default:0.
πΈ DESCRIPTION πΈ
so what does she actually do. v.label.sa makes a label-file from a GRASS vector map, with labels created from attributes in the attached table. and the labels? they're placed in as optimal a place as possible β that's literally her whole thing, it's giving main character energy π
. the label file has the same syntax as the one created by v.label, so you already know her.
π¦ EXAMPLE π¦
North Carolina example, iconic:
# get font names:
d.font -L
v.label.sa roadsmajor labels=roads_labels column=ROAD_NAME color=red \
background=white size=250 font=Vera
# set region:
g.region raster=lsat7_2002_10 -p
# display:
d.rgb b=lsat7_2002_10 g=lsat7_2002_20 r=lsat7_2002_30
d.vect roadsmajor col=yellow
d.labels roads_labels
Road labeling with v.label.sa (Raleigh, North Carolina, USA, area) π£οΈβ¨
π REFERENCES π
Edmondson, Christensen, Marks and Shieber: A General Cartographic Labeling Algorithm, Cartographica, Vol. 33, No. 4, Winter 1996, pp. 13-23. The algorithm works by the principle of Simulated Annealing β yes bestie, she's annealing, and she's annealing simulatedly π₯.
π SEE ALSO π
d.labeld.labelsps.map- Wikipedia article on simulated annealing
π AUTHOR π
Wolf Bergenheim
π» SOURCE CODE π»
Available at: v.label.sa source code (history)
Accessed: Saturday Jan 17 05:41:24 2026
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page bestie π«Ά tysm for reading, mwah. this was the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and you were kicking it with v.label.sa(1) under GRASS 8.4.2 β accessed Saturday Jan 17 05:41:24 2026. go place some labels optimally, you ate ππΈπ
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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