v.type(1)

πŸ’… v.type β€” the manual page, but make it make sense

okay bestie, welcome to v.type, straight out of the GRASS GIS User's Manual, section v.type(1). this one changes the type of vector features, and yes it's as iconic as it sounds. sit down, hydrate, let's go 🫢

KEYWORDS: vector, geometry, editing, area, line, point ✨


✨ SYNOPSIS ✨

the vibe check of how you actually call it:

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 the output files just bulldoze whatever's already there. no cap, it will overwrite existing files.
  • --help β€” prints the usage summary. your little emergency cheat sheet πŸ’–
  • --verbose β€” verbose module output. she's chatty, she's telling you everything.
  • --quiet β€” quiet module output. the opposite energy. shhh.
  • --ui β€” force launches the GUI dialog, for when you want buttons and not vibes.

πŸ¦‹ Parameters

  • input=name [required] β€” name of the input vector map. or, plot twist, the data source for direct OGR access. either way, required, no skipping 🚫
  • 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, this is the layer name instead. Default: -1
  • output=name [required] β€” name for the output vector map. she's new, she's fresh, name her.
  • from_type=string [required] β€” the feature type you're converting from.
    • Options: point, line, boundary, centroid, face, kernel
    • Default: line
  • to_type=string [required] β€” the feature type you're converting to.
    • Options: point, line, boundary, centroid, face, kernel
    • Default: boundary

🌸 DESCRIPTION 🌸

so what does v.type actually do? she changes the type of geometry primitives. that's it, that's the whole job, and she does it flawlessly πŸ’…

here's the roster of vector object types defined in GRASS GIS:

  • 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).
⚠️ heads up: kernel and volume are not yet implemented. do not come for me when they don't work, they literally told us in advance 😭

lines and boundaries can be composed of multiple vertices. multi-vertex, main character energy, love that for them.

area topology also holds information about isles. these isles are located within that area and they do NOT touch the boundaries of the outer area. think of them as holes inside the area πŸ•³οΈ, and an isle can consist of one or more areas. internally they're used to maintain correct topology for areas. quiet work, essential work πŸ‘‘


⭐ EXAMPLES ⭐

convert lines to area boundaries β€” the classic:

v.type input=map_l output=map_b from_type=line to_type=boundary

and listen, bestie, important plot point: in order to create areas, centroids must be added with v.centroids. v.type alone is not gonna do it for you 🫢


πŸ”₯ SEE ALSO πŸ”₯

  • v.centroids
  • v.to.points

πŸ‘‘ AUTHOR πŸ‘‘

Radim Blazek, ITC-Irst, Trento, Italy


🌈 SOURCE CODE 🌈

available at: v.type source code (history)

accessed: Saturday Jan 17 05:41:32 2026

main index | vector index | topics index | keywords index | graphical index | full index


okay that's the whole page, you ate that πŸŽ€ so the cute little sign-off: this is GRASS GIS 8.4.2 we're talking about, the reference manual is Β© 2003-2025 GRASS Development Team, and the footer stamp says GRASS 8.4.2 up top and v.type(1) down bottom. periodt. go convert something πŸ’–βœ¨

πŸ“¦ where this page comes from