d.to.rast(1)

πŸ’– d.to.rast β€” the manual, but make it cute πŸ’–

okay so bestie, we're in the GRASS GIS User's Manual, section d.to.rast(1), and this lil module is literally the screenshot button of the display world. let's get into it 🫢


✨ NAME ✨

d.to.rast β€” Saves the contents of the active display monitor to a raster map. that's it, that's the whole job, and she does it flawlessly πŸ’…


🏷️ KEYWORDS 🏷️

display, export, raster


🌸 SYNOPSIS 🌸

d.to.rast
d.to.rast --help
d.to.rast output=name  [--overwrite]  [--help]  [--verbose]  [--quiet]
[--ui]

πŸŽ€ Flags πŸŽ€

  • --overwrite β€” Allow output files to overwrite existing files (yes, she will absolutely clobber what's already there if you let her, so be careful πŸ‘€)
  • --help β€” Print usage summary
  • --verbose β€” Verbose module output
  • --quiet β€” Quiet module output
  • --ui β€” Force launching GUI dialog

πŸ¦‹ Parameters πŸ¦‹

  • output=name [required] β€” Name for output raster map

πŸ’œ DESCRIPTION πŸ’œ

so d.to.rast saves the content of the currently selected monitor into a raster map. the active monitor can be selected with d.mon. and plot twist β€” d.to.rast can be run from the GUI Console tab, too. no cap.

πŸ’€ important vibe check: this module is not sensitive to computational region settings. she does not care about your region, she just copies the monitor. periodt.

⭐ EXAMPLE ⭐

bestie we're gonna combine different raster and vector map layers to create a composite layer which can be draped over elevation in 3D view. iconic behavior, honestly.

First, we add a couple of maps to layer manager:

g.region raster=elevation
d.rast map=elevation
d.rast map=lakes
d.vect map=roadsmajor width=4
d.vect map=roadsmajor width=2 color=yellow
# create a raster map from the display
d.to.rast output=composite

Then uncheck all layers except for elevation and switch to 3D view. In Data tab, set color map to the newly created composite map. chef's kiss 🧚

Figure: Raster map created by d.to.rast draped over digital elevation model.


πŸ‘‘ SEE ALSO πŸ‘‘

d.out.file, d.erase, d.rast, d.vect, d.mon


🌈 AUTHOR 🌈

Anna Petrasova, NCSU GeoForAll Lab β€” the queen herself 🫢


πŸ’» SOURCE CODE πŸ’»

Available at: d.to.rast source code (history)

Accessed: Saturday Jan 17 05:41:51 2026

Main index | Display 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 ✨ this was GRASS 8.4.2 talking about d.to.rast(1) β€” go forth and screenshot your monitor, ily, mwah πŸ’–

πŸ“¦ where this page comes from