[gdal-dev] I cannot clean overviews from GeoTIFF

Javier Jimenez Shaw j1 at jimenezshaw.com
Mon May 12 08:31:19 PDT 2025


Thank you Even and Jukka!

On Mon, 12 May 2025 at 17:02, Even Rouault <even.rouault at spatialys.com>
wrote:

> 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 listgdal-dev at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250512/224fc5fd/attachment-0001.htm>


More information about the gdal-dev mailing list