Appends n_levels - 1 reduced-resolution copies of the raster to the
file. Each level is computed by 2x downsampling the previous level
with the chosen kernel. Reading via vec_read_window(level = L)
picks tiles at level L; the file's n_levels is updated in place.
vec_build_overviews(
path,
levels,
resampling = c("average", "nearest", "bilinear", "mode", "gauss"),
compression = c("fast", "balanced", "max")
)Invisible NULL.
Path to a .vec raster file. The file is modified in place.
Total levels including level 0 (so levels = 5 adds
four overviews: levels 1..4). Must be in [2, 16].
One of "nearest", "average", "bilinear",
"mode", "gauss". "average" is the right choice for continuous
rasters; "mode" for categorical/land-cover.
Compression effort for the new tiles. Defaults to
"fast" because overview tiles are usually one-shot writes.