[gdal-dev] Re: Catch a GDALOpen exception

canduc17 candini at meeo.it
Thu Apr 7 03:04:44 EDT 2011


Ok. So if I have well understood the most safe thing to do is the following:
myDataset = (GDALDataset *) GDALOpen( "myFile.tif", GA_ReadOnly );
	if(myDataset == NULL )
	{
		return 14;
	}

Indeed it works and I obtain 14 as returning value of my program...

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Catch-a-GDALOpen-exception-tp6246599p6248874.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list