Skip to content
Snippets Groups Projects
Commit c2143f69 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Added otb::DEMHandler::GetDEMCount().

parent 6f46ae0f
Branches
Tags
No related merge requests found
......@@ -125,6 +125,10 @@ public:
/** Set the default height above ellipsoid in case no information is available*/
double GetDefaultHeightAboveEllipsoid() const;
/**
* @return The number of elevation databases in the <code>ossimElevManager</code>.
*/
unsigned int GetDEMCount() const;
/** Get DEM directory */
std::string GetDEMDirectory(unsigned int idx = 0) const;
......
......@@ -243,6 +243,15 @@ DEMHandler
return m_DefaultHeightAboveEllipsoid;
}
unsigned int
DEMHandler
::GetDEMCount() const
{
assert( ossimElevManager::instance()!=NULL );
return ossimElevManager::instance()->getNumberOfElevationDatabases();
}
std::string DEMHandler::GetDEMDirectory(unsigned int idx) const
{
std::string demDir = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment