2

"gdaladdo -clean" does not remove the internal overview from the file see http://trac.osgeo.org/gdal/ticket/4940

How do I remove GeoTIFF overview(s) without having to re-compress the main image.

3
  • Which version of gdaladdo are you using?
    – Mapperz
    Feb 7, 2013 at 16:26
  • GDAL 1.9.2, released 2012/10/08
    – Firefishy
    Feb 7, 2013 at 16:32
  • Think I may be able to self answer: tiffsplit (of libtiff, ubuntu package: libtiff-tools) and gdalcopyproj.py
    – Firefishy
    Feb 7, 2013 at 16:33

1 Answer 1

0

Using tiffsplit (of libtiff, debian/ubuntu package: libtiff-tools) and gdalcopyproj.py you can extract the main image + overviews and then copy across the original geo metadata.

Example:

tiffsplit source.tif tmp-
gdalcopyproj.py source.tif tmp-aaa.tif 
mv tmp-aaa.tif final.tif
rm tmp-???.tif

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.