[gdal-dev] Problem with reading OziExplorer .map world files

AksakTimur timchab at yahoo.com
Sat Jan 28 16:41:38 EST 2012


Hey,

I'm new to GDAL and I have a problem when I try to open a raster file with a
.map worldfile(OziExplorer Map Data File):

...
double AdfGeoTransform[6];

pDataset->GetGeoTransform( AdfGeoTransform ) *returs CE_Failure!*
...

Also, I've tried GDALLoadOziMapFile(..) and GDALReadOziMapFile(...):

CString sMapFile = sFileName.Left(sFileName.GetLength() - 3)+_T("map");
	
const char* pszFileName = CStringToCharUTF8(sMapFile );
char*     pszWKT;
int       nGCPCount;
GDAL_GCP* pasGCPs;

double AdfGeoTransform[6];
	
//GDALLoadOziMapFile(pszFileName , AdfGeoTransform
,&pszWKT,&nGCPCount,&pasGCPs);
GDALReadOziMapFile(pszFileName , AdfGeoTransform
,&pszWKT,&nGCPCount,&pasGCPs);

I get  :

pszWKT = GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]

nGCPCount = 1;

but AdfGeoTransform[0] =-1.#QNAN00000000000, etc.

I've tried a number of different .map worldfiles. Didn't work. 
May be there is no support for .map worldfiles?
Any idea what' s wrong?

Regards

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-reading-OziExplorer-map-world-files-tp4346806p4346806.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list