Return-Path: <tiff-admin@remotesensing.org>
Received: from inmx008.isp.belgacom.be (inmx008.isp.belgacom.be [195.238.3.88])
        by mailst006.isp.belgacom.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id i4EHmYJs005918
        for <joris.at.lebbeke@skynet.be>; Fri, 14 May 2004 19:48:34 +0200
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.44])
        by inmx008.isp.belgacom.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id i4EHmUtV015038
        for <joris.at.lebbeke@skynet.be>; Fri, 14 May 2004 19:48:31 +0200
        (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.6) with ESMTP id i4EHl5n30932;
	Fri, 14 May 2004 13:47:05 -0400
Received: from ams.org (sun06.ams.org [130.44.1.6])
	by yoda.imagelinks.com (8.11.6/8.11.6) with ESMTP id i4EHkln30899
	for <tiff@remotesensing.org>; Fri, 14 May 2004 13:46:47 -0400
Received: from sun06.ams.org (sun06.ams.org [130.44.1.6])
	by ams.org (8.12.9/8.12.9) with ESMTP id i4EHkRSC009636
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <tiff@remotesensing.org>; Fri, 14 May 2004 13:46:28 -0400 (EDT)
From: "Thomas J. Kacvinsky" <tjk@ams.org>
To: tiff@remotesensing.org
Subject: Re: [Tiff] Reading Custom Tags
In-Reply-To: <OF8E8F9F66.BDAC8441-ON85256E94.005FACE0-85256E94.0060286A@twc.weather.com>
Message-ID: <Pine.GSO.4.53.0405141344290.4763@sun06.ams.org>
References: <OF8E8F9F66.BDAC8441-ON85256E94.005FACE0-85256E94.0060286A@twc.weather.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/)
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.13
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: Fri, 14 May 2004 13:46:27 -0400 (EDT)
X-UIDL: ea5fae060635fcdd24e93eab15f3af55

How is it failing?   If the code is dumping core, submit a gdb backtrace
of the coredump.  The code you are using is also helpful.

I bet the problem is some weird issue with integer sizes and alignment issues
on the 64 bit paltform...

Tom

On Fri, 14 May 2004, Bill Cassanova wrote:

>
> Hi Antonio,
>
> You answered this question for me a back in January so I thought I might try to
> continue the
> thread.
>
> On a 32bit linux machine your suggestion worked perfectly and I am able to read
> the custom
> tags.  For whatever reason I built and installed libtiff-3.6.1.so on our new AMD
> 64 machine
> and the exact same code if failing when attempting to read the same exact custom
> tags.
>
> Do you have any ideas?  I really don't want to go through the headache of
> customizing the
> distribution to get it to work for our custom tags mainly because each time we
> upgrade the application
> or move the application to another architecture I may be doing the same thing
> again.
>
> Thanks for any ideas that you have,
> Bill
>
>
>
>
>                       Antonio Scuri
>                       <scuri@tecgraf.pu        To:       <tiff@remotesensing.org>
>                       c-rio.br>                cc:
>                       Sent by:                 Subject:  Re: [Tiff] Reading Custom Tags
>                       tiff-admin@remote
>                       sensing.org
>
>
>                       01/23/2004 07:50
>                       PM
>
>
>
>
>
>
> At 16:40 20/1/2004, David Christopher Asher wrote:
> >Hello,
> >
> >I am having sime trouble reading custom tags from a TIFF file.  The tags are
> >two GeoTIFF tags, (33550 and 33922), which hold 3 doubles and 6 doubles
> >respectively.  I have found very little documentation on custom tags online,
> >apart from the 3.6.0 spec notes page, which would seem to indicate you read
> >them more or less like standard tags like TIFFTAG_IMAGEWIDTH.
> >
> >So, I use something like:
> >
> >     ...
> >     double x,y,z;
> >     TIFFGetField(tiff,33550,&x,&y,&z);
> >     ...
> >
> >I am using version 3.6.0 of the library.  Any help is appreciated!
>
>    You should upgrade to version 3.6.1 and change your code to:
>
>      double *dbl_array;
>      unsigned short count;
>      TIFFGetField(tiff,33550,&count, &dbl_array);
>
> Best,
> Antonio Scuri
>
> _______________________________________________
> Tiff mailing list
> Tiff@remotesensing.org
> http://remotesensing.org/mailman/listinfo/tiff
>
>
>
>
>
> _______________________________________________
> Tiff mailing list
> Tiff@remotesensing.org
> http://remotesensing.org/mailman/listinfo/tiff
>
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://remotesensing.org/mailman/listinfo/tiff
