Commit b066fa3e authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

BUG: update IsValidDEMDirectory regarding support for general elevation images

parent 01c75084
......@@ -98,7 +98,17 @@ bool
::IsValidDEMDirectory(const char* DEMDirectory)
return m_ElevManager->loadElevationPath(DEMDirectory);
//Try to load elevation source
bool result = m_ElevManager->loadElevationPath(DEMDirectory);
if (!result)
// we explicitly call ossimImageElevationDatabase here to allow for general elevation
// images support and test the open method to check if the directory .
ossimRefPtr<ossimElevationDatabase> imageElevationDatabase = new ossimImageElevationDatabase;
result = imageElevationDatabase->open(DEMDirectory);
return result;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment