v.out.svg(1grass)
π v.out.svg β the GRASS manual, but make it cute π
okay bestie, listen up: this is v.out.svg from the GRASS User's Manual, and it's literally the glow-up your vector maps have been waiting for. it takes your GRASS vector stuff and turns it into SVG β Scalable Vector Graphics β so it can live its best life in a browser. no cap. π¦
β¨ NAME β¨
v.out.svg β exports a vector map to an SVG file. that's it, that's the whole job, and it does it gorgeously. π
πΈ KEYWORDS πΈ
vector, export, output. the holy trinity, iykyk. β¨
π SYNOPSIS π
here's the whole vibe, copy-paste-able and everything:
v.out.svg
v.out.svg --help
v.out.svg input=name [layer=string] output=name type=string
[precision=integer] [attribute=name[,name,...]] [--overwrite]
[--help] [--verbose] [--quiet] [--ui]
π«Ά Flags π«Ά
these are your little toggle besties, no = needed, they just are:
--overwriteβ lets output files overwrite existing files. yes queen, bulldoze the old ones. π--helpβ prints the usage summary. when in doubt, ask. π--verboseβ verbose module output. chatty mode, love that for us.--quietβ quiet module output. shh. π€«--uiβ forces the GUI dialog to launch. point-and-click main character energy. π
π Parameters π
these are the actual deets you gotta feed it:
input=name[required] β name of the input vector map. or, plot twist, the data source for direct OGR access. either way, you gotta give it something. π₯layer=stringβ layer number or name ('-1'for all layers). a single vector map can be connected to multiple database tables, and this number decides which table gets used. when you're doing direct OGR access instead, this is the layer name. default:-1. bestie note:-1means all layers, so it's giving "i want everything". πoutput=name[required] β name for the SVG output file. name your baby. πtype=string[required] β output type. this defines which feature-type gets extracted. options:poly,line,point. default:poly. pick your fighter. β¨precision=integerβ coordinate precision. default:6. β¨attribute=name[,name,...]β attribute(s) to include in the output SVG. comma-separate them, bring all your faves. π
π DESCRIPTION π
v.out.svg converts GRASS vector data to SVG (Scalable Vector Graphics) code notation. and like, in particular, it:
- converts GRASS
line,boundary,area,point,centroidobjects to SVG<path />,<circle />elements. iconic behavior honestly. π - reduces coordinate precision in SVG-output to save bandwidth. we love a girl who's efficient. π¦
- extracts GRASS attributes to
gg:name="value"attributes. slay.
the precision parameter controls the number of decimals for coordinates output. and real talk: precision=0 corresponds to integer precision in the output SVG file. zero decimals, zero chaos. π
π EXAMPLE π
export polygons from the GRASS vector map soils (Spearfish sample data) to SVG format:
v.out.svg input=soils output=/tmp/output.svg type=poly
export lines from the GRASS vector map t_hydro (Spearfish sample data) to SVG format, and set coordinate precision to 0:
v.out.svg input=t_hydro output=/tmp/output.svg type=line precision=0
export points from the GRASS vector map archsites (Spearfish sample data) to SVG format, and include the attribute str1 (name):
v.out.svg input=archsites output=/tmp/output.svg type=point precision=0 attrib=str1
π REFERENCES π
- Module
v.out.svgatsvg.cc - SVG (Scalable Vector Graphics) at
w3c.org
π SEE ALSO π
v.out.ogr
(the extended universe. go read it next, bestie. π«Ά)
π AUTHOR π
Klaus Foerster (klaus svg.cc), Innsbruck, Austria. we stan. π
β SOURCE CODE β
available at: v.out.svg source code (history)
latest change: Friday Sep 05 13:39:09 2025 in commit: f2d027ab71b4f30ff9b8f9e997af30f262070a32
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
so that's the whole page, no skips, no summaries, every flag accounted for. π―
and for the cute sign-off: this whole thing lives under Β© 2003-2026 GRASS Development Team, from the GRASS 8.5.0 Reference Manual, and you're reading the v.out.svg(1grass) page of GRASS 8.5.0 β periodt. π
β¨π
π¦ 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