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

ENH: add a method to get the activity status of the group elevation

parent b475a397
Branches
Tags
No related merge requests found
...@@ -28,6 +28,7 @@ void ElevationParametersHandler::AddElevationParameters(Application::Pointer app ...@@ -28,6 +28,7 @@ void ElevationParametersHandler::AddElevationParameters(Application::Pointer app
app->AddParameter(ParameterType_Choice, key, "Elevation management"); app->AddParameter(ParameterType_Choice, key, "Elevation management");
app->SetParameterDescription(key, app->SetParameterDescription(key,
"This group of parameters allows to manage elevation values. Supported formats are SRTM, DTED or any geotiff processed by the DEM import application"); "This group of parameters allows to manage elevation values. Supported formats are SRTM, DTED or any geotiff processed by the DEM import application");
app->MandatoryOff(key);
// DEM directory // DEM directory
std::ostringstream oss; std::ostringstream oss;
...@@ -143,5 +144,11 @@ ElevationParametersHandler::IsGeoidUsed(const Application::Pointer app, const st ...@@ -143,5 +144,11 @@ ElevationParametersHandler::IsGeoidUsed(const Application::Pointer app, const st
return app->IsParameterEnabled(geoidKey.str()) && app->HasValue(geoidKey.str()); return app->IsParameterEnabled(geoidKey.str()) && app->HasValue(geoidKey.str());
} }
bool
ElevationParametersHandler::IsElevationEnabled(const Application::Pointer app, const std::string & key)
{
return app->IsParameterEnabled(key);
}
}// End namespace Wrapper }// End namespace Wrapper
}// End namespace otb }// End namespace otb
...@@ -59,6 +59,7 @@ public: ...@@ -59,6 +59,7 @@ public:
static float GetAverageElevation(const Application::Pointer app, const std::string& key); static float GetAverageElevation(const Application::Pointer app, const std::string& key);
static const std::string GetGeoidFile(const Application::Pointer app, const std::string& key); static const std::string GetGeoidFile(const Application::Pointer app, const std::string& key);
static bool IsGeoidUsed(const Application::Pointer app, const std::string& key); static bool IsGeoidUsed(const Application::Pointer app, const std::string& key);
static bool IsElevationEnabled(const Application::Pointer app, const std::string & key);
protected: protected:
ElevationParametersHandler(); // not implemented ElevationParametersHandler(); // not implemented
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment