[gdal-dev] BuildOverviews fails gor Jpeg-compressed TIFF

Frank Warmerdam warmerdam at pobox.com
Fri May 21 13:45:58 EDT 2010

Helge Morkemo wrote:
> Hi all!
> I have a problem when producing overviews in a jpeg compressed tiff.with 
> Gdal 1.7.2, Windows 7
> After my basic image is produced, with the GeoTIFF driver, I call 
> BuildOverviews("GAUSS",overviewlist,nothing,nothing)
> overviewlist is 2,4,8,16,32,64,128
> (It's a VB.NET <http://VB.NET> 2010 app.)
> I get this message: GetBlockRef failed at X block offset 1, Y block offset 0
> It's the same in my program as in GdalOverviews.
> The basic image is made line by line with RGB bands.
> The image is 7588 by 5492 pixels.
> If I add BIGTIFF=YES when creating it, the overviews generation seem to 
> work, but the colors are all messed up in the overviews


If practical, try with GDAL "svn trunk" and make sure you are using the
latest libtiff source too - the code in the GDAL tree should be fine.

I have done a number of fixes in GDAL and libtiff that tend to come out
with jpeg compressed tiff files and overview generation.  So, hopefully, the
problem is already fixed.  If not, please file a ticket with details.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the gdal-dev mailing list