Received: from mailgate009.isp.belgacom.be (mailgate009.isp.belgacom.be [195.238.6.2])
	by maildelivery015.isp.belgacom.be (Postfix) with ESMTP id 055B14F81B6
	for <joris.at.lebbeke@skynet.be>; Thu, 17 Jan 2008 00:36:19 +0100 (CET)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 17 Jan 2008 00:36:19 +0100
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m0GNNjec005773;
	Wed, 16 Jan 2008 18:24:13 -0500
Received: from sasl.smtp.pobox.com (a-sasl-quonix.sasl.smtp.pobox.com
	[208.72.237.25])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m0GNNJ7L005768
	for <tiff@lists.maptools.org>; Wed, 16 Jan 2008 18:23:20 -0500
Received: from a-sasl-quonix (localhost [127.0.0.1])
	by a-sasl-quonix.pobox.com (Postfix) with ESMTP id 0159211CE;
	Wed, 16 Jan 2008 18:23:17 -0500 (EST)
Received: from [192.168.2.4] (dpc674728121.direcpc.com [67.47.28.121])
	(using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by a-sasl-quonix.pobox.com (Postfix) with ESMTP id C895711CD;
	Wed, 16 Jan 2008 18:23:09 -0500 (EST)
Message-ID: <478E91F2.3000106@pobox.com>
Date: Wed, 16 Jan 2008 18:23:30 -0500
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
MIME-Version: 1.0
To: Timur Ametov <ametov@gmx.net>
Subject: Re: [Tiff] Q: TIFFWriteRawTile()
References: <20080116224456.106040@gmx.net>
In-Reply-To: <20080116224456.106040@gmx.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.000029f4
X-MSP-STORE: Thu, 17 Jan 2008 00:36:20 --22-99
Status:   

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

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
