AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
June 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2009.06.30 13:20 "Errors parsing TIFF/GeoTIFF files greater than 2GB", by Jim Richmond
2009.06.30 13:28 "Re: Errors parsing TIFF/GeoTIFF files greater than 2GB", by Frank Warmerdam
2009.06.30 13:34 "Re: Errors parsing TIFF/GeoTIFF files greater than 2GB", by Jim Richmond
2009.06.30 13:56 "Re: Errors parsing TIFF/GeoTIFF files greater than 2GB", by Frank Warmerdam
2009.06.30 14:24 "Re: Errors parsing TIFF/GeoTIFF files greater than 2GB", by <jcupitt@gmail.com>
2009.06.30 14:26 "Re: Errors parsing TIFF/GeoTIFF files greater than 2GB", by <jcupitt@gmail.com>

2009.06.30 13:28 "Re: Errors parsing TIFF/GeoTIFF files greater than 2GB", by Frank Warmerdam

Richmond, Jim wrote:
> Hi, we’re using version 3.8.2 of the TIFF library (I think we’d 
> downloaded it from remotesensing.org) and are running into
> 
> problems parsing files greater than 2GB.  This is the first time that 
> we’ve ever dealt with files greater than this size.  Here’s
> 
> the portion of our C++ code (it’s been untouched for many years).
> 
> TIFF  *TIFFPtr = (TIFF *)0;
> 
> TIFFPtr = XTIFFOpen (imageFilename, "r");
> 
> retCode = TIFFGetField(TIFFPtr,  TIFFTAG_IMAGEWIDTH,  &myImageWidth);
> 
> It looks like either the call to XTIFFOpen is returning a null pointer 
> or the call to TIFFGetField is returning a value of FALSE.  I’ve seen
> 
> references in the archives to other people with similar issues, but was 
> wondering if there is some type of configuration value
> 
> that I can change in version 3.8.2 to get this to work. Thanks!

Jim,

What are you using for low level IO?  Is this using tif_win32.c on windows?
tif_unix.c on linux? Solaris?   One issues at the 2GB barrier is ensuring
that you are using a large file enabled file io implementation.  On win32
the tif_unix implementation is 32bit and only up to 2GB.  On linux it should
normally be 64bit.  On other unix platforms it may or may not support large
files.  If you have implemented your own low level file IO layer for some
reason, then that can also be an issue.

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