| vec_build_overviews | R Documentation |
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")
)
path |
Path to a |
levels |
Total levels including level 0 (so |
resampling |
One of |
compression |
Compression effort for the new tiles. Defaults to
|
Unlike the streamed raster verbs, this decodes every band of the base raster into memory at once to build the pyramid, so peak memory is on the order of the full base raster (all bands). Build overviews before a raster grows past what fits in RAM, or on a per-band basis for very large stacks.
Invisible NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.