v.type(1grass)
β¨ v.type β¨
okay so bestie, welcome to the v.type manual page from the GRASS User's Manual (v.type(1grass)) β the glow-up station for your vector geometry π
π·οΈ NAME π·οΈ
v.type β changes type of vector features. that's it, that's the whole job, and she does it flawlessly π
π KEYWORDS π
vector, geometry, editing, area, line, point
π SYNOPSIS π
v.type
v.type --help
v.type input=name [layer=string] output=name from_type=string
to_type=string [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π© Flags π©
--overwriteβ let your output files just bulldoze whatever's already sitting there with the same name. no asking, no warning, it just goes π--helpβ prints the usage summary so you can stop squinting at the terminal--verboseβ verbose module output, aka she tells you everything she's doing--quietβ quiet module output, aka she says nothing, she just works π€«--uiβ forces the GUI dialog to launch, for when you want buttons and vibes
π§© Parameters π§©
input=name[required] β name of the input vector map. can also be a data source for direct OGR access, iykyklayer=stringβ layer number or name (-1grabs all the layers). so here's the thing: one single vector map can be hooked up to multiple database tables, and this number decides which table gets used. when you're doing direct OGR access, this is the layer name instead. Default:-1output=name[required] β the name for your output vector map πfrom_type=string[required] β the feature type you're converting from Options:point,line,boundary,centroid,face,kernelDefault:lineto_type=string[required] β the feature type you're converting to Options:point,line,boundary,centroid,face,kernelDefault:boundary
π« DESCRIPTION π«
v.type changes the type of geometry primitives. she's a transformation queen, no cap π
here's the full roster of vector object types defined in GRASS, and bestie, we're going through all of them:
- point: a point;
- line: a directed sequence of connected vertices with two endpoints called nodes;
- boundary: the border line describing an area;
- centroid: a point within a closed ring of boundaries;
- area: the topological composition of a closed ring of boundaries and a centroid;
- face: a 3D area;
- kernel: a 3D centroid in a volume (not yet implemented π);
- volume: a 3D corpus, the topological composition of faces and kernel (not yet implemented π).
lines and boundaries can be composed of multiple vertices, fr fr.
area topology also holds information about isles. these isles are located within that area, and they don't touch the boundaries of the outer area. isles are literal holes inside the area, and they can consist of one or more areas. GRASS uses them internally to keep the topology for areas correct π
πΈ EXAMPLES πΈ
convert lines to area boundaries:
v.type input=map_l output=map_b from_type=line to_type=boundary
ok so important note bestie: in order to create areas, centroids must be added withv.centroids.v.typealone will not do that for you, don't come for me π
π SEE ALSO π
v.centroids, v.to.points
π AUTHOR π
Radim Blazek, ITC-Irst, Trento, Italy
π» SOURCE CODE π»
Available at: v.type source code (history)
Latest change: Friday Aug 08 09:39:19 2025 in commit: ed72c71d8580e872cd6fd345c84a15c324764465
Main index | Vector index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page, bestie π«Ά this was v.type(1grass) from the one and only GRASS 8.5.0 Reference Manual, Β© 2003-2026 GRASS Development Team β stay iconic, go convert some geometry, 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