2009.06.30 13:20 "[Tiff] Errors parsing TIFF/GeoTIFF files greater than 2GB", by Richmond, Jim

2009.06.30 13:20 "[Tiff] Errors parsing TIFF/GeoTIFF files greater than 2GB", by Richmond, Jim

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 Richmond
700 N. Frederick Ave. 181/2Y06
Gaithersburg, MD 20879
Phone 301-240-4982 Fax 301-240-7190

jim.richmond@lmco.com