Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

"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.

share|improve this question
    
Which version of gdaladdo are you using? –  Mapperz Feb 7 '13 at 16:26
    
GDAL 1.9.2, released 2012/10/08 –  Firefishy Feb 7 '13 at 16:32
    
Think I may be able to self answer: tiffsplit (of libtiff, ubuntu package: libtiff-tools) and gdalcopyproj.py –  Firefishy Feb 7 '13 at 16:33
    
You can answer and accept your own questions on GIS-SE, more users welcome. –  Mapperz Feb 7 '13 at 16:43
add comment

1 Answer

up vote 0 down vote accepted

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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