[gdal-dev] extracting only raster from a geotiff with internal overviews

Helmut Kudrnovsky hellik at web.de
Fri Apr 17 06:45:30 PDT 2020


hi,

there is a large raster file (8GB) available:

http://users.cbk.waw.pl/~mkrupinski/S2GLC_Europe_2017_v1.1_grey.zip

with quite heavy internal overviews.

what I want to do, is to get rid of the internal overviews and a smaller
file.

when I do a gdal_translate to a target geotiff, are the overviews copied to
the target geotiff too?

in

https://gdal.org/drivers/raster/gtiff.html

COPY_SRC_OVERVIEWS=[YES/NO]: (CreateCopy() only) By setting this to YES
(default is NO), the potential existing overviews of the source dataset will
be copied to the target dataset without being recomputed. [...] Note that
this creation option will have no effect if general options (i.e. options
which are not creation options) of gdal_translate are used. Creation options
related to compression are also applied to the output overviews.

I've read in https://gdal.org/programs/gdaladdo.html

For internal GeoTIFF overviews (or external overviews in GeoTIFF format),
note that -clean does not shrink the file. 

gdaladdo -clean removes only the pointer to the overviews.

thanks



-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list