r.buildvrt(1grass)
π r.buildvrt β the manual, but make it make sense β¨
okay bestie, so this is r.buildvrt from the GRASS User's Manual and she is that girl. 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, and she does it flawlessly π
π·οΈ 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: π
--overwriteβ let the output files just bulldoze over existing files. she said move, periodt.--helpβ print the usage summary, aka the cheat sheet π«Ά--verboseβ verbose module output, she's gonna tell you everything.--quietβ quiet module output. shhh π€« no yapping.--uiβ force launching the GUI dialog. main character graphical era π
π¦ Parameters: π¦
input=name[,name,...]β name of input raster files (yes, a whole lil comma-separated list of them).file=nameβ input file with one raster map name per line. one per line bestie, she's organized like that πoutput=name[required] β name for the output raster map. required, so like, don't forget it πtitle=phraseβ title for the resultant raster map. give her a name, a moment, a title card π
π DESCRIPTION π
r.buildvrt builds a virtual raster (VRT) that is a mosaic of the list of input raster maps. the whole purpose of such a VRT is to provide fast access to small subsets of the VRT β and also with multiple simultaneous read requests. multi-tasking icon behavior fr fr π₯
π 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, which is only valid if the original raster maps remain in the originally indicated mapset. so if you move them, she's just a link to nothing. ghosted π
a VRT can also be built from raster maps registered with r.external. however β and hear me out β GRASS VRTs built from external registered data (see below) are known to have performance issues. not her fault, it's just the vibe over there π
reading the whole VRT is slower than reading the equivalent single raster map. only reading small parts of the VRT provides a performance benefit. so like, read a little, not the whole thing. snack, don't feast π
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, masking are already handled by native GRASS raster routines. she's low-maintenance, she handles herself β¨
π₯ EXAMPLES π₯
π VRT from a DEM in the North Carolina sample dataset π
in this exercise a low resolution DEM is resampled to a high resolution DEM. this is subsequently cut into small tiles and from that a virtual tile mosaik is created:
# 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
look at her go ππ
π KNOWN ISSUES π
users may experience significant performance degradation with virtual rasters built with r.buildvrt over GDAL-linked (r.external) raster maps β especially on slower file systems with latency like NFS. π
performance degradation may also occur on local file systems, but is usually less severe. for such use cases consider using the GRASS addon r.buildvrt.gdal or building GDAL VRTs, e.g. with gdalbuildvrt.
ngl if your filesystem is on NFS, maybe sit this one out or switch strategies. she's warning you with love π«Ά
π SEE ALSO π
r.tile, r.patch, r.external r.buildvrt.gdal
the equivalent GDAL utility gdalbuildvrt β
πΈ AUTHOR πΈ
Markus Metz Sponsored by mundialis π«‘
π¦ SOURCE CODE π¦
available at: r.buildvrt source code (history)
latest change: Friday Apr 17 01:04:26 2026 in commit: 32a143358df26b2e518b03c7e0d79541e8d1e5b1
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page bestie π no cap. huge thanks to the GRASS Development Team β Β© 2003-2026 β and this is all from the GRASS 8.5.0 Reference Manual. you're reading r.buildvrt straight outta GRASS 8.5.0. slay, go build yourself a mosaic πβ¨π
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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