.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "GDAL-RASTER-OVERVIEW-REFRESH" "1" "Aug 18, 2026" "" "GDAL"
.SH NAME
gdal-raster-overview-refresh \- Refresh overviews
.sp
Added in version 3.12.
.SH SYNOPSIS
.INDENT 0.0
.INDENT 3.5
.sp
.EX
Usage: gdal raster overview refresh [OPTIONS]
Refresh overviews.
Positional arguments:
\-i, \-\-dataset, \-\-input Dataset (to be updated in\-place, unless \-\-external) [required]
Common Options:
\-h, \-\-help Display help message and exit
\-\-json\-usage Display usage as JSON document and exit
\-\-config = Configuration option [may be repeated]
\-q, \-\-quiet Quiet mode (no progress bar or warning message) [not available in pipelines]
Options:
\-\-external Refresh external overviews
\-r, \-\-resampling Resampling method. RESAMPLING=nearest|average|cubic|cubicspline|lanczos|bilinear|gauss|average_magphase|rms|mode
\-\-levels Levels / decimation factors [may be repeated]
\-\-bbox Bounding box to refresh
Mutually exclusive with \-\-like, \-\-use\-source\-timestamp
\-\-like Use extent of dataset(s) [may be repeated]
Mutually exclusive with \-\-bbox, \-\-use\-source\-timestamp
\-\-use\-source\-timestamp Use timestamp of VRT or GTI sources as refresh criterion
Mutually exclusive with \-\-bbox, \-\-like
Advanced Options:
\-\-oo, \-\-open\-option = Open options [may be repeated]
.EE
.UNINDENT
.UNINDENT
.SH DESCRIPTION
.sp
\fBgdal raster overview refresh\fP can be used to refresh existing overviews
of a dataset.
By default all overviews are refreshed, but it is also possible to restrict
the refreshed overviews by level and/or extent.
.SH PROGRAM-SPECIFIC OPTIONS
.INDENT 0.0
.TP
.B \-\-bbox ,,,ymax>
This option performs a partial refresh of existing overviews, in the region
of interest specified by georeferenced coordinates, in CRS units.
.sp
\(aqx\(aq is longitude values for geographic CRS and easting for projected CRS.
\(aqy\(aq is latitude values for geographic CRS and northing for projected CRS.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-dataset
Dataset name, to be updated in\-place by default (unless \fI\%\-\-external\fP is specified). Required.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-external
Refresh external \fB\&.ovr\fP overviews.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-levels
A list of overview levels to build. Each overview level must be an integer
value greater or equal to 2.
.sp
If not specified all existing overviews are refreshed.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-like [,]...
This option performs a partial refresh of existing overviews, in the region
of interest specified by one or several filenames (names separated by comma).
Note that the filenames are only used to determine the regions of interest
to refresh. The reference source pixels are the one of the main dataset.
By default all existing overview levels will be refreshed, unless explicit
levels are specified. See \fI\%Example 2\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B \-r, \-\-resampling {nearest|average|cubic|cubicspline|lanczos|bilinear|gauss|average_magphase|rms|mode}
Select a resampling algorithm. The default is \fBnearest\fP, which is generally not
appropriate if sub\-pixel accuracy is desired.
.sp
When refreshing existing TIFF overviews, the previously
used method, as noted in the RESAMPLING metadata item of the overview, will
be used if \fI\%\-r\fP is not specified.
.sp
The available methods are:
.sp
\fBnearest\fP applies a nearest neighbour (simple sampling) resampler.
.sp
\fBaverage\fP computes the average of all non\-NODATA contributing pixels. This is a weighted average taking into account properly the weight of source pixels not contributing fully to the target pixel.
.sp
\fBbilinear\fP applies a bilinear convolution kernel.
.sp
\fBcubic\fP applies a cubic convolution kernel.
.sp
\fBcubicspline\fP applies a B\-Spline convolution kernel.
.sp
\fBlanczos\fP applies a Lanczos windowed sinc convolution kernel.
.sp
\fBgauss\fP applies a Gaussian kernel before computing the overview,
which can lead to better results than simple averaging in e.g case of sharp edges
with high contrast or noisy patterns. The advised level values should be 2, 4, 8, ...
so that a 3x3 resampling Gaussian kernel is selected.
.sp
\fBaverage_magphase\fP averages complex data in mag/phase space.
.sp
\fBrms\fP computes the root mean squared / quadratic mean of all non\-NODATA contributing pixels
.sp
\fBmode\fP selects the value which appears most often of all the sampled points.
.UNINDENT
.INDENT 0.0
.TP
.B \-\-use\-source\-timestamp
This option performs a partial refresh of existing overviews of a
\fI\%VRT \-\- GDAL Virtual Format\fP or \fI\%GTI \-\- GDAL Raster Tile Index\fP file with an external overview.
It checks the modification timestamp of all the sources of the VRT
and regenerate the overview for areas corresponding to sources whose
timestamp is more recent than the external overview of the VRT.
By default all existing overview levels will be refreshed, unless explicit
levels are specified. See \fI\%Example 1\fP\&.
.UNINDENT
.SH STANDARD OPTIONS
.INDENT 0.0
.TP
.B \-\-oo, \-\-open\-option =
Dataset open option (format specific).
.sp
May be repeated.
.UNINDENT
.SH RETURN STATUS CODE
.sp
The program returns status code 0 in case of success, and non\-zero in case of
error (non\-blocking errors emitted as warnings are considered as a successful
execution).
.SH EXAMPLES
.SS Example 1: Refresh external overviews of a VRT file using timestamp of source files
.sp
This is needed when for sources have been modified after the .vrt.ovr generation:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
gdal raster mosaic tile1.tif tile2.tif my.vrt # create VRT
gdal raster overview add \-\-external \-r cubic my.vrt # initial overview generation
touch tile1.tif # simulate update of one of the source tiles
gdal raster overview refresh \-\-external \-r cubic \e
\-\-use\-source\-timestamp my.vrt # refresh overviews
.EE
.UNINDENT
.UNINDENT
.SS Example 2: Refresh (internal) overviews of a TIFF file
.INDENT 0.0
.INDENT 3.5
.sp
.EX
gdal raster mosaic tile1.tif tile2.tif mosaic.tif # create mosaic
gdal raster overview add \-r cubic mosaic.tif # initial overview generation
gdalwarp tile1_modif.tif mosaic.tif # update mosaic
gdal raster overview refresh \-\-like=tile1.tif my.tif # refresh overviews
.EE
.UNINDENT
.UNINDENT
.SH AUTHOR
Even Rouault
.SH COPYRIGHT
1998-2026
.\" Generated by docutils manpage writer.
.