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
January 2008

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

2008.01.16 22:44 "Q: TIFFWriteRawTile()", by Timur Ametov
2008.01.16 23:23 "Re: Q: TIFFWriteRawTile()", by Frank Warmerdam
2008.01.17 09:20 "Re: Q: TIFFWriteRawTile()", by Timur Ametov
2008.01.17 12:50 "Re: Q: TIFFWriteRawTile()", by Timur Ametov

2008.01.16 23:23 "Re: Q: TIFFWriteRawTile()", by Frank Warmerdam

Timur Ametov wrote:
> Hallo Everybody,
> 
> I'm not really sure, that I understood that's right. Is ist really not
> possible, to change / add some tiles to tiled tiffimage later? I mean, after
> tile was already once written and / or tiffimage was already closed?
> 
> If it's so, why is it so? If itsn't so, how can i change tile later. I tried
> it, but there were no changes in the image.

Tim,

What version of libtiff are you using?

Looking in the code I see that TIFFWriteRawTile() skips a bunch of stuff
that is done by TIFFWriteEncodedTile() that might be important for rewriting
tiles such as this:

	if( td->td_stripbytecount[tile] > 0 )
         {
	    /* Force TIFFAppendToStrip() to consider placing data at end
                of file. */
             tif->tif_curoff = 0;
         }

I never use the "Raw" interfaces so it is entirely possible they are not
functioning properly with regard to some of the update-in-place logic.
But - in theory - it is intended that what you want should work if you open
a file in update mode.

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    | President OSGeo, http://osgeo.org