Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas027.isp.belgacom.be (localhost [127.0.0.1])
        by inav003.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id jAAAtlgU031255
        for <joris.at.lebbeke@skynet.be>; Thu, 10 Nov 2005 11:55:48 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx019.isp.belgacom.be (inmx019.isp.belgacom.be [195.238.5.138])
        by inas027.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id jAAAtfTk013549
        for <joris.at.lebbeke@skynet.be>; Thu, 10 Nov 2005 11:55:44 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx019.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id jAAAtWNV024400
        for <joris.at.lebbeke@skynet.be>; Thu, 10 Nov 2005 11:55:33 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jAAAjxdm017615;
	Thu, 10 Nov 2005 05:47:18 -0500
Received: from moutng.kundenserver.de (moutng.kundenserver.de
	[212.227.126.188])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id jAAAjut1017612
	for <tiff@lists.maptools.org>; Thu, 10 Nov 2005 05:45:57 -0500
Received: from p5091C5D1.dip.t-dialin.net [80.145.197.209] (helo=PC33)
	by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis),
	id 0ML21M-1Ea9vy37LP-00085T; Thu, 10 Nov 2005 11:45:34 +0100
From: "Thomas Oldenkott" <Thomas.Oldenkott@fleischhacker.biz>
To: <tiff@lists.maptools.org>
Date: Thu, 10 Nov 2005 11:44:49 +0100
Message-ID: <000d01c5e5e3$d51ad6d0$e95305c7@FLMED.LOC>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Thread-Index: AcXl48YxMmXcO/BIQye6jwdXSqVVPg==
X-Provags-ID: kundenserver.de abuse@kundenserver.de
	login:3661f3346a36afd338761bc28c4c4f06
Subject: [Tiff] Calculate Offset and can't read ASCII
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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="===============1087445784=="
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000e16
X-MSP-STORE: Thu, 10 Nov 2005 11:55:51 +0100
Status:   

This is a multi-part message in MIME format.

--===============1087445784==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_000E_01C5E5EC.36DF3ED0"

This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C5E5EC.36DF3ED0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello,
 
I have two problems. 
1) I need a way to calculate the offset of an image. I want to export it in
a csv-File. Is there a tag? How do I make this?
2) By reading tags in an ASCII format (for example TIFFTAG_DATETIME) to an
char array I get crazy values.
    Where is the problem?
 
    Example:
    char IMAGEDATETIME[50];
    TIFFGetField(tif,306,&IMAGEDATETIME);
    printf("\nIMAGEDATETIME= %s", IMAGEDATETIME);
    TIFFSetField(out,306,IMAGEDATETIME);
 
 
 
Greetings
 
TOM
     
 
 
 
 
 

------=_NextPart_000_000E_01C5E5EC.36DF3ED0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana size=3D2>I =
have two=20
problems. </FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana size=3D2>1) I =
need a way to=20
calculate the offset of an image. I want to export it in a csv-File. Is =
there a=20
tag? How do I make this?</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana size=3D2>2) =
By reading tags=20
in an ASCII format (for example TIFFTAG_DATETIME) to an char array I get =
crazy=20
values.</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;Where is the =
problem?</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005>&nbsp;&nbsp;&nbsp;&nbsp;<FONT =
face=3DVerdana=20
size=3D2>Example:</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005>&nbsp;&nbsp;&nbsp; <FONT =
face=3DVerdana=20
size=3D2>char IMAGEDATETIME[50];</FONT></SPAN></DIV>
<DIV><SPAN=20
class=3D754444107-10112005>&nbsp;&nbsp;&nbsp;&nbsp;TIFFGetField(tif,306,&=
amp;IMAGEDATETIME);</SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana =
size=3D2>&nbsp;&nbsp;&nbsp;=20
printf("\nIMAGEDATETIME=3D %s", IMAGEDATETIME);</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005>&nbsp;&nbsp;&nbsp; <FONT =
face=3DVerdana=20
size=3D2>TIFFSetField(out,306,IMAGEDATETIME);</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2>Greetings</FONT></SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2>TOM</FONT></SPAN></DIV>
<DIV><SPAN =
class=3D754444107-10112005>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005><FONT face=3DVerdana=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D754444107-10112005></SPAN>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000E_01C5E5EC.36DF3ED0--


--===============1087445784==
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/
--===============1087445784==--

