AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
February 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2007.02.01 19:28 "get tifftag_geoasciiparams string", by Gennady Khokhorin
2007.02.02 19:36 "Re: get tifftag_geoasciiparams string", by Gennady Khokhorin
2007.02.02 20:25 "Re: get tifftag_geoasciiparams string", by Phil Harvey
2007.02.02 20:44 "Re: get tifftag_geoasciiparams string", by Ed Grissom

2007.02.02 20:44 "Re: get tifftag_geoasciiparams string", by Ed Grissom

Gennady -  

I believe Phil is correct below. 

You would probably get better info if you asked on the GeoTIFF list
[geotiff@lists.maptools.org] although a lot of us hang out both places.


I think the GeoTIFF spec (1) describes what the string is supposed to
look like internally.  I would assume that the TIFF code treats it as
any other ASCII string type. 

The GeoTIFF spec requires that TIFFGetField() makes sure it has a
terminating NULL .


(1) http://geotiff.maptools.org/spec/geotiff2.4.html#2.4



-- 
ed grissom
ed.grissom@intergraph.com




-----Original Message-----
From: tiff-bounces@lists.maptools.org
[mailto:tiff-bounces@lists.maptools.org] On Behalf Of Phil Harvey
Sent: Friday, February 02, 2007 2:25 PM
To: tiff@lists.maptools.org
Subject: Re: [Tiff] Re: get tifftag_geoasciiparams string

On 2-Feb-07, at 2:36 PM, Gennady Khokhorin wrote:
> Still can not find any reference for return from TIFFGetField(tif,  
> TIFFTAG_GEOASCIIPARAMS, &data)
> command.

Hi Gennady,

I've never used TIFFGetField(), but I expect it just returns a null- 
terminated string for ASCII tags.  (A null terminated string is just  
a character array where the length is determined by scanning for the  
first null byte.)

The content of the TIFFTAG_GEOASCIIPARAMS will be a set of strings  
accessed via the TIFFTAG_GEOKEYDIRECTORY information.  In a sample I  
have, it looks like strings may be separated by '|' symbols in the  
TIFFTAG_GEOASCIIPARAMS record, but you should check the GeoTiff  
documentation to be sure.

I hope this helps.

	- Phil