Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas016.isp.belgacom.be (localhost [127.0.0.1])
        by inav017.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j9IHofW4028748
        for <joris.at.lebbeke@skynet.be>; Tue, 18 Oct 2005 19:50:41 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.5.146])
        by inas016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j9IHobUe030173
        for <joris.at.lebbeke@skynet.be>; Tue, 18 Oct 2005 19:50:39 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j9IHoQDL002092
        for <joris.at.lebbeke@skynet.be>; Tue, 18 Oct 2005 19:50:28 +0200
        (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 j9IHjnbB019729;
	Tue, 18 Oct 2005 13:46:08 -0400
Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.195])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j9IHjYRS019717
	for <tiff@lists.maptools.org>; Tue, 18 Oct 2005 13:45:35 -0400
Received: by qproxy.gmail.com with SMTP id p30so1370497qba
	for <tiff@lists.maptools.org>; Tue, 18 Oct 2005 10:45:34 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=VB8DacSIOpdH6eAoA/IJUhjS02BAa0IHu8utDpFM9tZigCeglQViN/bPmbJg8vjOPC38Pm9/70qZp3N0LB0Z4scVd4oYBHHicDLtakjQ9XE2HF5eFJ6eeOVhsXu2lpp5asDH9wOoUHF0KDv4a6W4UNHUb2ftsbkjWQJnJFJjhz8=
Received: by 10.65.160.11 with SMTP id m11mr3254904qbo;
	Tue, 18 Oct 2005 10:45:33 -0700 (PDT)
Received: by 10.65.155.9 with HTTP; Tue, 18 Oct 2005 10:45:33 -0700 (PDT)
Message-ID: <931f8ea90510181045r58a4447di6ab810204efbe93f@mail.gmail.com>
Date: Tue, 18 Oct 2005 13:45:33 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
To: Tobias Gurski <tg@cromabase.de>
Subject: Re: [Tiff] Change existingTiffTag
In-Reply-To: <F7FE55BC973F4046867C79302F276EE00FB2CD@gelo-exchange.gelo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <F7FE55BC973F4046867C79302F276EE00FB2CD@gelo-exchange.gelo.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	j9IHjYRS019717
Cc: tiff@lists.maptools.org
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000d4c
X-MSP-STORE: Tue, 18 Oct 2005 19:50:51 +0200
Status:   

On 10/18/05, Tobias Gurski <tg@cromabase.de> wrote:
>
> Hello everybody,
>
> I try to change a tiff Tag in a  existing tiff file . But I can't find a way
> to do this with the libtiff. Is there any way or not! I tried tiffsetField
> but it doesn't work. I searched 2 days without any result! Please help.
> Thanks

Tobias,

You might want to look at the tiffset program in libtiff/tools.
It just opens the file in "r+" mode, and uses TIFFSetField()
to set/reset selected fields.  The thing to be aware of about
this approach is that a new directory with the updated values
gets written at the end of the file, orphaning the disk space
used for the previous incarnation of the directory.

But if that isn't a problem for you, it should be practical.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

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