Hi, Tested with GDAL 3.12.0dev-8130fe444e, released 2025/04/28 (OSGeo4W) on Windows.
gdaladdo addo.tif -clean --debug on ... GDAL: GDALOpen(addo.tif, this=000002E622185320) succeeds as GTiff. GTiff: ScanDirectories() GTiff: Opened 6000x6000 overview. GTiff: Opened 3000x3000 overview. GTiff: Opened 1500x1500 overview. GTiff: Opened 750x750 overview. GTiff: Opened 375x375 overview. GTiff: Opened 188x188 overview. GDAL: GDALClose(addo.tif, this=000002E622185320) However, if I set the test file "addo.tif" into read-only with file manager, I get the same messages than you do. Could it be that simple? -Jukka Rahkonen- ________________________________________ Lähettäjä: gdal-dev käyttäjän Javier Jimenez Shaw via gdal-dev puolesta Lähetetty: Maanantai 12. toukokuuta 2025 13.01 Vastaanottaja: gdal dev Aihe: [gdal-dev] I cannot clean overviews from GeoTIFF HiI 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 overviewsCleaning overviews failed.GDAL: GDALClose(out/test.tif, this=0x133058e00)$ gdaladdo --versionGDAL 3.11.0 "Eganville", released 2025/05/06I 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