gdaladdo --version (return code: 0)
GDAL 2.2.1, released 2017/06/23
gdaladdo --help (return code: 1)
Usage: gdaladdo [-r {nearest,average,gauss,cubic,cubicspline,lanczos,average_mp,average_magphase,mode}]
[-ro] [-clean] [-q] [-oo NAME=VALUE]* [--help-general] filename levels
-r : choice of resampling method (default: nearest)
-ro : open the dataset in read-only mode, in order to generate
external overview (for GeoTIFF datasets especially)
-clean : remove all overviews
-q : turn off progress display
-b : band to create overview (if not set overviews will be created for all bands)
filename: The file to build overviews for (or whose overviews must be removed).
levels: A list of integral overview levels to build. Ignored with -clean option.
Useful configuration variables :
--config USE_RRD YES : Use Erdas Imagine format (.aux) as overview format.
Below, only for external overviews in GeoTIFF format:
--config COMPRESS_OVERVIEW {JPEG,LZW,PACKBITS,DEFLATE} : TIFF compression
--config PHOTOMETRIC_OVERVIEW {RGB,YCBCR,...} : TIFF photometric interp.
--config INTERLEAVE_OVERVIEW {PIXEL|BAND} : TIFF interleaving method
--config BIGTIFF_OVERVIEW {IF_NEEDED|IF_SAFER|YES|NO} : is BigTIFF used
Examples:
% gdaladdo -r average abc.tif 2 4 8 16
% gdaladdo --config COMPRESS_OVERVIEW JPEG
--config PHOTOMETRIC_OVERVIEW YCBCR
--config INTERLEAVE_OVERVIEW PIXEL -ro abc.tif 2 4 8 16