[Gdal-dev] BigTIFF support
Frank Warmerdam
warmerdam at pobox.com
Fri Jul 27 13:13:51 EDT 2007
Luis Viveros wrote:
> Hi Frank and all,
>
> Thanks. Now I pointed correctly --with-libtiff=/usr/local/ and the
> configure output is:
>
> LIBTIFF support: external (BigTIFF=yes)
>
> But, using gdalwarp after:
>
> gdalwarp -of GTiff -co BIGTIFF=YES -ot float32 input.tor output.tif
> Creating output file that is 32000P x 168000L
> ERROR 1: A 32000 pixels x 168000 lines x 1 bands Float32 image would be
> larger than 4GB
> but this is the largest size a TIFF can be. Creation failed.
>
> I executed ldconfig after installation...
Luis,
Is it possible you didn't do a "make clean" after reconfiguring with
bigtiff support? I see the following logic in gdal/frmts/gtiff/geotiff.cpp:
if( nCompression == COMPRESSION_NONE )
{
if( nXSize * ((double)nYSize) * nBands * (GDALGetDataTypeSize(eType)/8)
> 4200000000.0 )
{
#ifndef BIGTIFF_SUPPORT
CPLError( CE_Failure, CPLE_AppDefined,
"A %d pixels x %d lines x %d bands %s image would be
larger than 4GB\n"
"but this is the largest size a TIFF can be. Creation
failed.",
nXSize, nYSize, nBands, GDALGetDataTypeName(eType) );
return NULL;
#else
bCreateBigTIFF = TRUE;
#endif
}
}
So this error should not be reported if you build with BigTIFF support.
But if you just reconfigure and relink without a "make clean", then
geotiff.cpp won't get rebuilt and you would see the issue you have
run into.
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