[gdal-dev] elgis build of GDAL - compressed overview fails
even.rouault at mines-paris.org
Fri Oct 7 13:42:05 EDT 2011
Le vendredi 07 octobre 2011 16:29:10, Travis Kirstine a écrit :
> I have been using the elgis 5 repository with include build of GDAL
> 1.8 and have problems creating overviews with jpeg compression
> gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config
> PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL
> ORTH176250488302011FBS.tif 2 4 8
> 0...10...20...30...40...50...60...70...80...90...100 - done.
> 0gdaladdo: tif_jpeg.c:691: JPEGPreDecode: Assertion
> `sp->cinfo.comm.is_decompressor' failed.
> I believe that this is related to use of external libtiff / libgeotiff
> rather than internal as described in ticket 3139
Yes, I suppose elgis 5 ships with an ancient (ahem, I meant "stable" ;-))
libtiff version, presumably libtiff 3.8.2-with-lot-of-security-patches. It is
known that those old versions have caveats with advanced features like adding
multiple overview levels with JPEG compression.
No guarantee this will work, but you could try to generate one overview level
at a time :
gdaladdo all-the-above-options ORTH176250488302011FBS.tif 2
gdaladdo all-the-above-options ORTH176250488302011FBS.tif 4
gdaladdo all-the-above-options ORTH176250488302011FBS.tif 8
This could perhaps avoid the bug, but again no guarantee.
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
More information about the gdal-dev