Skip to content
Snippets Groups Projects
Commit e1824dcf authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH:test if file exists to avoid tileMapIO errors (testing the file http....)

parent ff3b0ccf
Branches
Tags
No related merge requests found
......@@ -2377,11 +2377,16 @@ bool ossimplugins::ossimTerraSarModel::findTSXLeader(const ossimFilename& file,
metadataFile = file;
res = true;
}
else if (!file.exists())
{
res = false;
}
else
{
ossimFilename imagePath = file.path();
if (imagePath.empty())
imagePath = ossimEnvironmentUtility::instance()->getCurrentWorkingDir();
ossimDirectory directory = ossimDirectory(imagePath.path());
std::vector<ossimFilename> vectName;
ossimString reg = ".xml";
......@@ -2417,6 +2422,7 @@ bool ossimplugins::ossimTerraSarModel::findTSXLeader(const ossimFilename& file,
<< std::endl;
}
}
}
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment