AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
November 2012

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2012.11.21 06:33 "XTIFFClientOpen scheme not generating proper geotiff tags", by Oscar Kramer
2012.11.21 19:12 "Re: XTIFFClientOpen scheme not generating proper geotiff tags", by Ryan Wong

2012.11.21 19:12 "Re: XTIFFClientOpen scheme not generating proper geotiff tags", by Ryan Wong

> Date: Wed, 21 Nov 2012 01:33:33 -0500
> From: oscarkramer@yahoo.com
> To: tiff@lists.maptools.org
> Subject: [Tiff] XTIFFClientOpen scheme not generating proper geotiff tags


> I suspect that the issue is with the close function not properly 
> flushing the geo-tags. The only thing my client close function does is 
> actually close the file -- just a one-liner with no additional writes of 
> any kind.

With regard to closing the file, Libtiff and any library built on top of it
needs to be flushed and then closed. This is not the same as closing the
file handle, as Libtiff may have unflushed data.
A "proper" closing sequence should consist of:(1) Calling TIFFFlush, and
checking that its return value is successful.(2) Calling TIFFClose (which
does not return value).(3) Close the file handle with the operating system
or the standard IO library.
http://www.remotesensing.org/libtiff/man/TIFFFlush.3tiff.htmlhttp://www.remotesensing.org/libtiff/man/TIFFClose.3tiff.html
Although TIFFClose automatically calls TIFFFlush, this is not recommended
because the flush operation could fail due to disk full or similar reasons,
butTIFFClose does not convey that failure to the caller.
rwong_002@hotmail.com