r.buildvrt(1)
π r.buildvrt β the manual page, bestie edition π
okay so you opened the GRASS GIS User's Manual page for r.buildvrt and honestly? good taste. let's get into it π
β¨ NAME β¨
r.buildvrt β build a VRT (Virtual Raster) from the list of input raster maps. that's it, that's the whole job π«Ά
π KEYWORDS π
raster, mosaic, virtual raster β iykyk π¦
π SYNOPSIS π
r.buildvrt
r.buildvrt --help
r.buildvrt [input=name[,name,...]] [file=name] output=name
[title=phrase] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π© Flags (the little switches, slay)
--overwriteβ allow output files to overwrite existing files. yes bestie, it will simply replace them π--helpβ print usage summary. your emotional support text π₯Ί--verboseβ verbose module output. it will tell you EVERYTHING, no holding back β¨--quietβ quiet module output. shhh π€«--uiβ force launching GUI dialog. for when you want the pretty buttons π
πΈ Parameters (the actual inputs)
input=name[,name,...]β name of input raster files. a whole list, comma-separated, go off πfile=nameβ input file with one raster map name per line. one per line, okay? one. per. line. πoutput=name[required] β name for output raster map. required required, no skipping this one bestie π¨title=phraseβ title for resultant raster map. give your baby a name π
π DESCRIPTION π
r.buildvrt builds a virtual raster (VRT) that is a mosaic of the list of input raster maps. the whole point of a VRT like this is to give you fast access to small subsets of the VRT, and also to handle multiple simultaneous read requests. it's giving efficient. it's giving main character energy π
π₯ NOTES π₯
r.buildvrt creates a list of raster maps that can be located in different mapsets. the output is a read-only link to the original raster maps, and it is only valid if the original raster maps remain in the originally indicated mapset. like, do not move them. do not touch them. they live there now π
a VRT can also be built from raster maps registered with r.external. ok versatile queen π
real talk though: reading the whole VRT is slower than reading the equivalent single raster map. the performance benefit only shows up when you're reading small parts of the VRT. so if you were planning to just inhale the entire thing, that's not the vibe π
a GRASS virtual raster can be regarded as a simplified version of GDAL's virtual raster format. the GRASS equivalent is simpler because issues like nodata, projection, resolution, resampling, and masking are already handled by native GRASS raster routines. GRASS said "don't worry about it, i got it" π
π¦ EXAMPLES π¦
β VRT from a DEM in the North Carolina sample dataset β
so in this exercise a low resolution DEM is resampled to a high resolution DEM. then it gets cut into small tiles, and from that a virtual tile mosaik is created. let's go step by step bestie, no cap:
# set the computational region to elevation map
g.region raster=elev_state_500m -p
# enforce higher resolution
g.region res=50 -p
# resample the 500 meter DEM to 50 meter resolution
r.resamp.interp input=elev_state_500m output=elev_state_50m method=bilinear
# create tiles from resulting large 50 m elevation map
r.tile input=elev_state_50m output=elev_state_50m_tile_ width=1000 height=1000 overlap=0
# for convenience, dump list of tile names to a file
g.list type=raster pattern=elev_state_50m_tile_* output=tilelist.csv
# build a mosaik as VRT from tile list
r.buildvrt file=tilelist.csv output=elev_state_50m_vrt
ate. no crumbs. π
πΈ SEE ALSO πΈ
r.tiler.patchr.external
the equivalent GDAL utility: gdalbuildvrt π§
π AUTHOR π
Markus Metz Sponsored by mundialis β shoutout π
π» SOURCE CODE π»
Available at: r.buildvrt source code (history)
Accessed: Saturday Jan 17 05:40:43 2026
Main index | Raster 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, page r.buildvrt(1), accessed Saturday Jan 17 05:40:43 2026, Β© 2003-2025 GRASS Development Team. go build that virtual raster, you absolute icon β¨π
π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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