Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-q.b-one.net (mx-q.one.com [91.198.169.248])
	by mail9.b-one.net (Postfix) with ESMTP id CE97A400161
	for <info@awaresystems.be>; Tue, 31 May 2011 15:45:56 +0200 (CEST)
Received: by mx-q.b-one.net (Postfix, from userid 106)
	id C45301E1FD91; Tue, 31 May 2011 15:45:11 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-q.b-one.net (Postfix) with ESMTP id B348E1E1FD83 for
 <info@awaresystems.be>; Tue, 31 May 2011 15:44:59 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 2D86986EA1; Tue, 31 May 2011
 08:42:52 -0500 (EST)
Received: from mail.sidefx.com (mail.sidefx.com [38.99.137.163]) by
 lists.maptools.org (Postfix) with ESMTPS id 95EDB86D6A for
 <tiff@lists.maptools.org>; Tue, 31 May 2011 08:02:38 -0500 (EST)
Message-ID: <4DE4E6ED.4080903@sidefx.com>
Date: Tue, 31 May 2011 09:02:37 -0400
From: Edward Lam <edward@sidefx.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17)
 Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <BANLkTimw4-crmTq8fQR5zpA4+1iM2Rb6dw@mail.gmail.com>
In-Reply-To: <BANLkTimw4-crmTq8fQR5zpA4+1iM2Rb6dw@mail.gmail.com>
Subject: Re: [Tiff] Write Tile
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Hi Jorge,

On 31/05/2011 6:54 AM, Jorge Martin wrote:
>          I am trying to write a tiled TIFF file but the
> function TIFFWriteTile is always returning "Can not write tiles to a
> stripped image" I have set the fields Tilewidth and TileLength and I do
> not know what is happening because I did not set any field about the
> strips. How can I solve this issue? I pasted some code that I used to
> write the TIFF:
...
>      //TILES INFO
>      TIFFGetField(OutTIFF, TIFFTAG_TILEWIDTH, 128);
>      TIFFGetField(OutTIFF, TIFFTAG_TILELENGTH,  128);

Since you're writing the TIFF file, shouldn't you use TIFFSetField() 
here? This might explain why libtiff thinks you're using the stripped 
interface instead of the tile interface.

Best Regards,
-Edward
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
