2012.11.21 06:33 "[Tiff] XTIFFClientOpen scheme not generating proper geotiff tags", by Oscar Kramer

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

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