Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx007.isp.belgacom.be (inmx007.isp.belgacom.be [195.238.3.89])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id iB9E1KGM013652
        for <joris.at.lebbeke@skynet.be>; Thu, 9 Dec 2004 15:01:20 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx007.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id iB9E1Am9003046
        for <joris.at.lebbeke@skynet.be>; Thu, 9 Dec 2004 15:01:12 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 22BFE4ECEAC; Thu,  9 Dec 2004 09:00:57 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from outmx009.isp.belgacom.be (outmx009.isp.belgacom.be
	[195.238.3.4])
	by xserve.flids.com (Postfix) with ESMTP id D558D4ECE87
	for <tiff@remotesensing.org>; Thu,  9 Dec 2004 09:00:53 -0500 (EST)
Received: from outmx009.isp.belgacom.be (localhost [127.0.0.1])
	by outmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with
	ESMTP id iB9E0p61031581
	for <tiff@remotesensing.org>; Thu, 9 Dec 2004 15:00:52 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (177-183.245.81.adsl.skynet.be [81.245.183.177])
	by outmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with SMTP
	id iB9E0oEh031568; Thu, 9 Dec 2004 15:00:50 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <000b01c4ddf7$9561c610$b1b7f551@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: <tiff@remotesensing.org>, "Chris Losinger" <losinger@earthlink.net>
References: <003701c4dc9d$b2c52fe0$5eb1f551@dfgrrxsknr4e><BDDBEC9A.2C99E%eric.vergnaud@jlynx.com><6.2.0.14.2.20041207212848.02cd6880@pop.earthlink.net><b35303704120801317626cafb@mail.gmail.com><6.2.0.14.2.20041208073835.02cf9be8@pop.earthlink.net><000c01c4dd24$40ed9650$7abaf551@dfgrrxsknr4e><6.2.0.14.2.20041208212744.02dac138@pop.earthlink.net><001701c4ddd7$a0a76a90$9fb4f551@dfgrrxsknr4e><6.2.0.14.2.20041209074326.02d21670@pop.earthlink.net><000e01c4ddf1$a68b2450$b1b7f551@dfgrrxsknr4e>
	<6.2.0.14.2.20041209082217.02d2c7c8@pop.earthlink.net>
Subject: Re: [Tiff] Q: writing tiled TIFFs
Date: Thu, 9 Dec 2004 15:01:26 +0100
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.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Cc: 
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: f8684097d5c66b397d5e06990a176457

Chris,

> the tile setup part is above. the actual tile writing part looks
> like this:

I can't see any obvious mistake. But of course, I'm not a C coder, and I don't
know the ISByteArray and CISOverlay objects...

Have you tried
- double-checking the th and tw values after they are set by TIFFGetField?
- dumping the memory pointed to by tempTile.GetPtr() to a temp file, at the time
of the TIFFWriteTile call, and checking that, so as to exclude the possibility
of a bug in the ISByteArray and/or CISOverlay objects?

As to the actual LibTiff calls, they seem fine to me, assuming that you've also
initialized stuff like the photometric and samplesperpixel tags and such
somewhere in the code. Sorry I cannot seem to be more helpful.



Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

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