Fix in https://github.com/OSGeo/gdal/pull/12351

You can workaround the issue by adding -oo IGNORE_COG_LAYOUT_BREAK=YES (actually not needed for cleaning as this doesn't break the layout, but definitely needed for adding to a COG)

Le 12/05/2025 à 12:01, Javier Jimenez Shaw via gdal-dev a écrit :
Hi

I am trying to clean the overviews from a GeoTIFF, but gdaladdo does not allow me. Is that an expected behaviour? Maybe I am missing more options. (there is no opposite of "-ro")

$ gdaladdo --debug on -clean out/test.tif
GDAL: GDALOpen(out/test.tif, this=0x133058e00) succeeds as GTiff.
GTiff: ScanDirectories()
GTiff: Opened 6978x5110 overview.
GTiff: Opened 3489x2555 overview.
GTiff: Opened 1744x1277 overview.
GTiff: Opened 872x638 overview.
GTiff: Opened 436x319 overview.
GTiff: File open for read-only accessing, creating overviews externally.
ERROR 6: test.tif: Cannot add external overviews when there are already 
internal overviews
Cleaning overviews failed.
GDAL: GDALClose(out/test.tif, this=0x133058e00)

$ gdaladdo --version
GDAL 3.11.0 "Eganville", released 2025/05/06

I am running it on a Mac.
Cheers,
Javier.


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to