id summary reporter owner description type status priority milestone component version severity resolution keywords cc 3917 COPY_SRC_OVERVIEWS option of gdal_translate incompatible with -outsize and -srcwin jcrepetto warmerdam "I have a file containing overviews : {{{ $ gdalinfo -noct World.ozf2 Driver: OZI/OZI Files: World.ozf2 Size is 2108, 2048 Coordinate System is `' Band 1 Block=64x64 Type=Byte, ColorInterp=Palette Overviews: 527x512, 211x205, 105x102, 53x51 Color Table (RGB with 256 entries) }}} Thanks to the -outsize option, I can create a TIFF file containing only the first overview : {{{ $ gdal_translate -outsize 25% 25% World.ozf2 World.tif Input file size is 2108, 2048 $ gdalinfo -noct World.tif Driver: GTiff/GeoTIFF Files: World.tif Size is 527, 512 Band 1 Block=527x15 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) }}} But I would like to keep the other overviews, so I add the COPY_SRC_OVERVIEW option : {{{ $ gdal_translate -outsize 25% 25% -co COPY_SRC_OVERVIEWS=YES World.ozf2 World.tif Input file size is 2108, 2048 $ gdalinfo -noct World.tif Driver: GTiff/GeoTIFF Files: World.tif Size is 527, 512 Band 1 Block=527x15 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) }}} There are no overviews in the output file. I expected three overviews (211x205, 105x102, 53x51). Same problem with the -srcwin option : {{{ $ gdal_translate -srcwin 0 0 527 512 -co COPY_SRC_OVERVIEWS=YES World.ozf2 World.tifInput file size is 2108, 2048 $ gdalinfo -noct World.tif Driver: GTiff/GeoTIFF Files: World.tif Size is 527, 512 Band 1 Block=527x15 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) }}} No overviews in the output file. " enhancement closed normal Utilities svn-trunk normal wontfix