Skip to content
Snippets Groups Projects
Commit 7b823609 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : add file existance control

parent 5469f6b1
No related branches found
No related tags found
No related merge requests found
......@@ -215,6 +215,14 @@ bool ossimQuickbirdMetaData::parseMetaData(const ossimFilename& data_file)
<< std::endl;
}
if( !data_file.exists() )
{
ossimNotify(ossimNotifyLevel_WARN)
<< "ossimQuickbirdMetaData::parseMetaData(data_file) WARN:"
<< "\nmetadate data file <" << data_file << ">. "
<< "doesn't exist..." << std::endl;
}
FILE* fptr = fopen (data_file, "r");
if (!fptr)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment