![]() |
![]()
| ![]() |
![]()
NAMEgdal-raster-overview-add - Add overviews to a raster dataset Added in version 3.11. SYNOPSISUsage: gdal raster overview add [OPTIONS] <DATASET> Adding overviews. Positional arguments: DESCRIPTIONgdal raster overview add can be used to build or rebuild overview images for most supported file formats with one of several downsampling algorithms.
EXAMPLESExample 1: Create overviews, embedded in the supplied TIFF file, with automatic computation of levelsgdal raster overview add -r average abc.tif Example 2: Create overviews, embedded in the supplied TIFF filegdal raster overview add -r average --levels=2,4,8,16 abc.tif Example 3: Create an external compressed GeoTIFF overview file from the ERDAS .IMG filegdal raster overview add --external --levels=2,4,8,16 --config COMPRESS_OVERVIEW=DEFLATE erdas.img Example 4: Create an external JPEG-compressed GeoTIFF overview file from a 3-band RGB datasetIf the dataset is a writable GeoTIFF, you also need to add the --external option to force the generation of external overview. gdal raster overview add --config COMPRESS_OVERVIEW=JPEG --config PHOTOMETRIC_OVERVIEW=YCBCR Example 5: Create overviews for a specific subdatasetFor example, one of potentially many raster layers in a GeoPackage (the "filename" parameter must be driver prefix, filename and subdataset name, like e.g. shown by gdalinfo): gdal raster overview add GPKG:file.gpkg:layer AUTHOREven Rouault <even.rouault@spatialys.com> COPYRIGHT1998-2025
|