Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-s.one.com (mx-s.one.com [91.198.169.250])
	by mail6.local (Postfix) with ESMTP id 96F4F80150C1F
	for <filtered@awaresystems.be>; Wed, 28 Nov 2012 20:27:01 +0100 (CET)
X-Virus-Scanned: by one.com
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
Received-SPF: pass (mx-s: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.220.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176])
	by mx-s.one.com (Postfix) with ESMTP id 34808F4802C
	for <filtered@awaresystems.be>; Wed, 28 Nov 2012 19:27:01 +0000 (UTC)
Received: by mail-vc0-f176.google.com with SMTP id fl13so19078347vcb.21
        for <filtered@awaresystems.be>; Wed, 28 Nov 2012 11:27:00 -0800 (PST)
Received: by 10.52.179.130 with SMTP id dg2mr25469897vdc.8.1354130820184;
        Wed, 28 Nov 2012 11:27:00 -0800 (PST)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.58.144.166 with SMTP id sn6csp731689veb;
        Wed, 28 Nov 2012 11:26:59 -0800 (PST)
Received: by 10.58.12.231 with SMTP id b7mr30335142vec.31.1354130818262;
        Wed, 28 Nov 2012 11:26:58 -0800 (PST)
Received-SPF: neutral (google.com: 91.198.169.55 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=91.198.169.55;
Received: by 10.220.117.65 with POP3 id p1mf8530555vcq.35;
        Wed, 28 Nov 2012 11:26:58 -0800 (PST)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-h.one.com (mx-h.one.com [91.198.169.55])
	by mail6.local (Postfix) with ESMTP id ECD3F80103402
	for <info@awaresystems.be>; Wed, 28 Nov 2012 20:25:46 +0100 (CET)
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version"
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-h.one.com (Postfix) with ESMTP id 8E15810DA6C2
	for <info@awaresystems.be>; Wed, 28 Nov 2012 19:25:46 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 27A4543A046;
	Wed, 28 Nov 2012 14:24:26 -0500 (EST)
Received: from qmta02.westchester.pa.mail.comcast.net
	(qmta02.westchester.pa.mail.comcast.net [76.96.62.24])
	by lists.maptools.org (Postfix) with ESMTP id 9D28143A046
	for <tiff@lists.maptools.org>; Wed, 28 Nov 2012 14:04:58 -0500 (EST)
Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11])
	by qmta02.westchester.pa.mail.comcast.net with comcast
	id V3661k0060EZKEL51753fn; Wed, 28 Nov 2012 19:05:03 +0000
Received: from Davids-MacBook-Pro.local ([71.43.98.142])
	by omta01.westchester.pa.mail.comcast.net with comcast
	id V74t1k00634KF4f3M74vyo; Wed, 28 Nov 2012 19:05:01 +0000
Message-ID: <50B66055.7010001@comcast.net>
Date: Wed, 28 Nov 2012 14:04:53 -0500
From: David Burken <dburken@comcast.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8;
	rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: Jorge Martin <jormarfe@gmail.com>
References: <CADH5xWrpZzSL3GWgD77i1eN2YqD+aAzDmQ7DY9_0YaE7kaJcNw@mail.gmail.com>
In-Reply-To: <CADH5xWrpZzSL3GWgD77i1eN2YqD+aAzDmQ7DY9_0YaE7kaJcNw@mail.gmail.com>
Cc: "tiff@lists.maptools.org" <tiff@lists.maptools.org>
Subject: Re: [Tiff] Error in TIFFWriteDirectory when writting multi page TIFF
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: multipart/mixed; boundary="===============0709420002=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

This is a multi-part message in MIME format.
--===============0709420002==
Content-Type: multipart/alternative;
 boundary="------------050500000900060001040601"

This is a multi-part message in MIME format.
--------------050500000900060001040601
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

You may need  a TIFFFlush call.  This class writes subfiles (overviews) 
if you want to look at it.

http://trac.osgeo.org/ossim/browser/trunk/ossim/src/ossim/imaging/ossimTiffOverviewBuilder.cpp

Best of luck,
Dave


On 11/28/12 11:45 AM, Jorge Martin wrote:
> Hello,
>
>
>     I am trying to write multi-file TIFF. In some cases I am obtaining 
> the following error from TIFFWriteDirectory function:
>
> TIFFLinkDirectory: Error fetching directory count.
>
> TIFFReadDirectory help says:
>
>       "*Error fetching directory count*. A read error occurred when 
> fetching the directory count field for a previous directory. This can 
> occur when setting up a link to the directory that is being written."
>
>     But I do not understand the origin of the error and how to solve 
> this problem, because it only writes the first image.
>
>     Does anyone know how to solve this error?
>
> Best Regards,
>
> Jorge
>
>
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/


--------------050500000900060001040601
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      You may need&nbsp; a TIFFFlush call.&nbsp; This class writes subfiles
      (overviews) if you want to look at it.<br>
      <br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/ossim/browser/trunk/ossim/src/ossim/imaging/ossimTiffOverviewBuilder.cpp">http://trac.osgeo.org/ossim/browser/trunk/ossim/src/ossim/imaging/ossimTiffOverviewBuilder.cpp</a><br>
      <br>
      Best of luck,<br>
      Dave<br>
      <br>
      <br>
      On 11/28/12 11:45 AM, Jorge Martin wrote:<br>
    </div>
    <blockquote
cite="mid:CADH5xWrpZzSL3GWgD77i1eN2YqD+aAzDmQ7DY9_0YaE7kaJcNw@mail.gmail.com"
      type="cite">Hello,
      <div><br>
      </div>
      <div><br>
      </div>
      <div>&nbsp; &nbsp; I am trying to write <span class=""
          style="background-color:yellow"><span class="" style="">multi</span></span>-file
        TIFF. In some cases I am obtaining the following error from <span
          class="" style="">TIFFWriteDirectory</span> function:&nbsp;</div>
      <div><br>
      </div>
      <div><span class="" style="">TIFFLinkDirectory</span>: Error
        fetching directory count.<br>
      </div>
      <div><br>
      </div>
      <div>&nbsp; &nbsp; &nbsp;<span class="" style="">TIFFReadDirectory</span> help
        says:</div>
      <div><br>
      </div>
      <div>&nbsp; &nbsp; &nbsp; "<b style="color:rgb(0,0,0);font-family:'Times New
          Roman';font-size:medium">Error fetching directory count</b><span
          style="color:rgb(0,0,0);font-family:'Times New
          Roman';font-size:medium">. A read error occurred when fetching
          the directory count field for a previous directory. This can
          occur when setting up a link to the directory that is being
          written."</span></div>
      <div><br>
      </div>
      <div>&nbsp; &nbsp; But I do not understand&nbsp;the origin of the error and how
        to solve this problem, because it only writes the first image.&nbsp;</div>
      <div><br>
      </div>
      <div>&nbsp; &nbsp; Does anyone know how to solve this error?</div>
      <div>
        <br>
      </div>
      <div>Best Regards,</div>
      <div><br>
      </div>
      <div>Jorge</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Tiff mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Tiff@lists.maptools.org">Tiff@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/tiff">http://lists.maptools.org/mailman/listinfo/tiff</a>
<a class="moz-txt-link-freetext" href="http://www.remotesensing.org/libtiff/">http://www.remotesensing.org/libtiff/</a></pre>
    </blockquote>
    <br>
  </body>
</html>

--------------050500000900060001040601--

--===============0709420002==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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