Return-Path: <tiff-admin@remotesensing.org>
Received: from inmx011.isp.belgacom.be (inmx011.isp.belgacom.be [195.238.3.50])
        by six.skynet.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i1JHZZ8V010565
        for <joris.at.lebbeke@skynet.be>; Thu, 19 Feb 2004 18:35:39 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.42])
        by inmx011.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i1JHYkG3020110
        for <joris.at.lebbeke@skynet.be>; Thu, 19 Feb 2004 18:34:47 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id i1JHYAl03555;
	Thu, 19 Feb 2004 12:34:10 -0500
Received: from sojef.skynet.be (sojef.skynet.be [195.238.2.127])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id i1JHXAl03535
	for <tiff@remotesensing.org>; Thu, 19 Feb 2004 12:33:10 -0500
Received: from dfgrrxsknr4e (236-210.241.81.adsl.skynet.be [81.241.210.236])
        by sojef.skynet.be (8.12.9/8.12.9/Skynet-OUT-2.21) with SMTP id i1JHX3rD031711
        for <tiff@remotesensing.org>; Thu, 19 Feb 2004 18:33:03 +0100
        (envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <003801c3f70e$8de34330$ecd2f151@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: <tiff@remotesensing.org>
References: <4034ED2C.4010107@free.fr>
Subject: Re: [Tiff] How to write tile ?
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-RAVMilter-Version: 8.4.3(snapshot 20030212) (sojef.skynet.be)
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Thu, 19 Feb 2004 18:33:55 +0100
X-UIDL: f6a4367308327c907a6b8ce1e21d542b

> In pseudo code I would like to do that:
>
> WriteTile(myImageTile, x, y)
> {
> myTiffFile = openTiff("w"); // for the first Tile, the others are opened
> with "a" ?
>
> TIFFWriteTile(myTiffFile, myImageTile, x, y, 0, 0);
>
> closeTiff(myTiffFile);
> }

The logic is incorrect. You need to first open the TIFF, next write *all*
tiles, and next close the TIFF. That doesn't exclude the possibility of
working with one tile at the time. The particular writing function/level you
use doesn't change the open/initialize/write/close sequence.

> any help or ideas or URL ??

- The docs.
- http://www.ibm.com/developerworks/linux/library/l-libtiff/
- http://www-106.ibm.com/developerworks/linux/library/l-libtiff2/



Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
