[Gdal-dev] Dataset instance has no attribute 'GetMetadataItem'
Martel, Christian
Christian.Martel at drdc-rddc.gc.ca
Tue Jan 16 12:03:16 EST 2007
Hi,
With fwtools 1.1.3 on XP, I wrote this python script :
import gdal
gdal.AllRegister()
dataset =
gdal.Open('d:/geodata/digest/cib/cb05NJ1701_2/rpf/GJKJI22/00A56324.I22')
fdt = dataset.GetMetadataItem("NITF_FDT")
print fdt
I get
AttributeError: Dataset instance has no attribute 'GetMetadataItem'
I get the same answer with a tiff file.
Plain GetMetadata() works great but I'd like to get specific item.
I found no sample python script using GetMetadataItem. How should I call
it ?
Thanks,
Christian
More information about the Gdal-dev
mailing list