v.to.rast3(1)

✨ v.to.rast3 ✨

okay bestie, gather round, because we're looking at v.to.rast3 from the GRASS GIS User's Manual and it is lowkey iconic. she takes your 3D vector points and turns them into a 3D raster map. glow-up of the century fr fr πŸ’…

KEYWORDS: vector, conversion, voxel


🌸 SYNOPSIS 🌸

v.to.rast3
v.to.rast3 --help
v.to.rast3 input=name  [layer=string]  output=name column=name
[--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸŽ€ Flags

  • --overwrite β€” let your output files just bulldoze whatever was already there. existing files? gone. allow output files to overwrite existing files, periodt.
  • --help β€” prints the usage summary so you're not out here guessing 🫢
  • --verbose β€” verbose module output. she's chatty, she's telling you everything.
  • --quiet β€” quiet module output. she's giving mysterious, silent, no notes 🀫
  • --ui β€” force-launch the GUI dialog. for when you want the pretty buttons.

πŸ¦‹ Parameters

  • input=name [required] β€” name of input vector map. or, plot twist, it can be a data source for direct OGR access.
  • layer=string β€” layer number or name. here's the tea: vector features can have category values in different layers, and this number decides which layer we're using. when you're doing direct OGR access, this is the layer name instead. Default: 1
  • output=name [required] β€” name for output 3D raster map. that's your baby, name her well πŸ’–
  • column=name [required] β€” name of attribute column. and bestie, the data type must be numeric, no cap. don't try to sneak a string in there.

πŸ‘‘ DESCRIPTION πŸ‘‘

v.to.rast3 converts a GRASS 3D vector point map into a GRASS 3D raster map. that's it. that's the whole vibe. simple, effective, main character energy. ✨


πŸ’€ NOTES πŸ’€

so when you're converting from a 3D vector point layer to a 3D raster map, here's what actually goes down: each vector point gets converted into a single 3D raster cell (aka a voxel, iykyk) that represents the location of that vector point.

and the cell value? it's the database attribute of the vector point, stored with floating point precision. so your data stays precise, she stays cute. 🧚

Fig: This screenshot shows the result of the v.to.rast3 test. Visualized are the cube of the GRASS region, the vector points as black dots and the voxel cells as wireframe model. Only cells with non-null values are shown.

🌈 SEE ALSO 🌈

  • g.region

🫢 AUTHORS 🫢

  • Original s.to.rast3: Jaro Hofierka, Geomodel s.r.o.
  • Updated by Radim Blazek

πŸ’œ SOURCE CODE πŸ’œ

Available at: v.to.rast3 source code (history)

Accessed: Saturday Jan 17 05:41:31 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, no notes πŸ’… GRASS 8.4.2, accessed Saturday Jan 17 05:41:31 2026 β€” go convert some points, you're gonna ate πŸ“βœ¨

πŸ“¦ where this page comes from