[Gdal-dev] NITF image metadata domain field in GDAL - SUBDATASETS

Alison Luo alison_luo2001 at yahoo.com
Wed Jun 6 14:34:02 EDT 2007


I need to extract image data from NITF format metadata
field. I know there is a SUBDATASETS domain field for
this purpose. I used libraries from 
http://vterrain.org/Distrib/gdal.html .

But the SUBDATASETS domain is not recognized. Here's
my code:

	GDALAccess	access = GA_ReadOnly;
	GDALDataset*  imgDataset = NULL;
	const char* pszFilename =
ASFileSysDisplayStringFromPath(inFileSys, inPath);
	imgDataset = (GDALDataset*)GDALOpen(pszFilename,
access); 	

	GDALDriver* gDriver = imgDataset->GetDriver();
	const char* str =
gDriver->GetMetadataItem(SUBDATASETS);




      ____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz



More information about the Gdal-dev mailing list