[gdal-dev] Re: gdal_merge and BIGTIFF option fails
WolfgangZ
wollez at gmx.net
Tue Feb 26 11:23:52 EST 2008
Frank Warmerdam schrieb:
> 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,
the problem was that I had the create option "COMPRESS=JPEG". With JPEG
compression edit in place is not possible.
Regards
Wolfgang
More information about the gdal-dev
mailing list