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.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev