[gdal-dev] gdal_merge and BIGTIFF option fails

Frank Warmerdam warmerdam at pobox.com
Fri Feb 22 10:55:44 EST 2008


WolfgangZ wrote:
> Hi,
> I'm trying to merge some tiles into a single tiff file that will be 
> bigger than 4 GB. But when it reaches the 4GB the following error occurs:
> FIFFWriteEncodedTile() failed
> TIFFAppendToStrip: Maximum TIFF file size exeeded.
> 
> I have also to report that in the very beginning I get following error:
> TIFFFetchStripThing: Sanity check on size of "TileOffsets" value failed.
> 
> I'm using WFTools 2.0.4 on Ubuntu

Wolfgang,

I tried creating a bigtiff with gdal_translate and FWTools 2.0.6 and it
seemed to work.  I suspect this was a temporarily problem fixed since
2.0.4.  Could you try again with 2.0.6 and if the problem persists
file a ticket against GDAL with the details?

I did:

gdal_translate ~/utm.tif -outsize 100000 50000 big.tif

which with debug enabled reported:

GDAL: GDALOpen(/wrk/home/warmerda/utm.tif) succeeds as GTiff.
Input file size is 512, 512
0GTiff: Automatically flipping to Bigtiff due to large file size
GDAL: GDALOpen(big.tif) succeeds as GTiff.
GDAL: GDALDatasetCopyWholeRaster(): 100 line swath, bInterleave=0
...10...20...30...40...50...60...70...80...90...100 - done.
GDAL: GDALClose(big.tif)
GDAL: GDALClose()
GDAL: GDALClose(/wrk/home/warmerda/utm.tif)
GDAL: GDALDeregister_GTiff() called.

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    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list