Geoscience Reference
In-Depth Information
-clean
(from GDAL 1.7) remove all overviews.
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.
In addition to these options, gdaladdo can be invoked with runtime configura-
tion options. 1
--config USE_RRD YES
Use Erdas Imagine format (.aux) as overview format.
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.
We build an overview of image landsat.tif (a copy of the Landsat 8 image
LC82070232013160LGN00.tif ) with six levels at scales 2, 4, 8, 16, 32 and
64. The size and quality (high quality means large file size) of overviews can be
controlled with the option --config . In this example we use an image quality of
75%. The impact of adding such overviews on the file size is shown in Fig. 7.3 .The
advantage of having overviews on raster files is a faster access in image viewers such
as QGIS. In this particular example, the six layer overview with a JPEG quality of
75% increased the file size with 21%. We set the photometric interpretation tag to
YCBCR and use the band interleaved by pixel encoding scheme.
gdaladdo -r average --config COMPRESS_OVERVIEW JPEG --config
JPEG_QUALITY_OVERVIEW 75 --config PHOTOMETRIC_OVERVIEW
YCBCR --config INTERLEAVE_OVERVIEW PIXEL landsat.tif 2 4
8163264
1 For more information on the configuration options, check http://trac.osgeo.org/gdal/wiki/
ConfigOptions .
 
 
Search WWH ::




Custom Search