[gdal-dev] I cannot clean overviews from GeoTIFF

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon May 12 06:48:58 PDT 2025


Apparently it is related with COG:

$ gdal_translate -of COG foo.tif foo.cog.tif
Input file size is 1000, 1000
0...10...20...30...40...50...60...70...80...90...100 - done.

$ gdaladdo -clean --debug ON foo.cog.tif
GDAL: GDALOpen(foo.cog.tif, this=0x15900ae00) succeeds as GTiff.
GTiff: ScanDirectories()
GTiff: Opened 500x500 overview.
GTiff: File open for read-only accessing, creating overviews externally.
ERROR 6: foo.cog.tif: Cannot add external overviews when there are
already internal overviews
Cleaning overviews failed.
GDAL: GDALClose(foo.cog.tif, this=0x15900ae00)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250512/59dbb57c/attachment.htm>


More information about the gdal-dev mailing list