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, iykyk
  • layer=string β€” layer number or name (-1 grabs 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: -1
  • output=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, kernel Default: line
  • to_type=string [required] β€” the feature type you're converting to Options: point, line, boundary, centroid, face, kernel Default: 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 with v.centroids. v.type alone 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