[Gdal-dev] CIB/NITF metadata

Martel, Christian Christian.Martel at drdc-rddc.gc.ca
Thu Jul 12 15:09:01 EDT 2007


Frank,

You confirmed what I was thinking. I'll check for a workaround for that
metadata.
Thanks,
Christian

-----Original Message-----
From: Frank Warmerdam [mailto:warmerdam at pobox.com] 
Sent: 12 juillet 2007 14:46
To: Martel, Christian
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] CIB/NITF metadata

Martel, Christian wrote:
> Hi,
> 
> I use the NITF driver to extract metadata from CIB NITS frame file. 
> The CIB specification gives information about Horizontal accuracy 
> (absolute and relative) attributes. According to RPF specification, 
> these attributes should be near the end of the NITF file (not in NITF
header).
> Does anyone knows if the NITF driver take care of these specific 
> attributes with GetMetadata ?

Christian,

CIB uses various extension blocks and these are not generally exposed as
metadata by GDAL.  Basically, run gdalinfo on the file and if you don't
see the metadata you want, then it isn't available through GDAL.

You might want to look at NITFReadBLOCKA() in
gdal/frmts/nitf/nitfimage.c for an example of reporting specific
extension block contents as metadata.
If you have the docs handy, you might find you can engineer in support
for additional items.  I'd be open to patches to this effect.

Best regards,
-- 
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo,
http://osgeo.org





More information about the Gdal-dev mailing list