[gdal-dev] I cannot clean overviews from GeoTIFF

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Mon May 12 05:30:58 PDT 2025


Hi,

Can you reproduce even with these three commands:

gdal_create -outsize 1000 1000 test.tif
gdaladdo test.tif
gdaladdo -clean test.tif

If you can I fear the only solution is to say goodbye to Mac and switch to Windows ;)

-Jukka Rahkonen-
________________________________________
Lähettäjä: Javier Jimenez Shaw
Lähetetty: Maanantai 12. toukokuuta 2025 14.28
Vastaanottaja: Rahkonen Jukka
Kopio: gdal dev
Aihe: Re: [gdal-dev] I cannot clean overviews from GeoTIFF

Thanks Jukka. That was my first guess.However before sending the email I checked it. "ls -l" is telling me this (I understand I can modify it)$ ls -l out/test.tif -rw-r--r--  1 jshaw  staff  1356600907 May 12 11:38 out/test.tifOn Mon, 12 May 2025 at 12:40, Rahkonen Jukka <jukka.rahkonen at maanmittauslaitos.fi> wrote: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 puolestaLähetetty: Maanantai 12. toukokuuta 2025 13.01Vastaanottaja: gdal devAihe: [gdal-dev] I cannot clean overviews from GeoTIFFHiI 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.


More information about the gdal-dev mailing list