From a368dccbf4ee0612dcbc61670733931ee87366bb Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Mon, 12 Dec 2011 17:27:58 +0100 Subject: [PATCH] ENH: checking and dem direcotry initilalization are done in the elvation handler --- Applications/Projections/otbOrthoRectification.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Applications/Projections/otbOrthoRectification.cxx b/Applications/Projections/otbOrthoRectification.cxx index 8b544e2d5a..fcdae7d2e6 100644 --- a/Applications/Projections/otbOrthoRectification.cxx +++ b/Applications/Projections/otbOrthoRectification.cxx @@ -392,14 +392,7 @@ private: { case Elevation_DEM: { - if(!ElevationParametersHandler::GetDEMDirectory(this, "elev").empty()) - { - m_ResampleFilter->SetDEMDirectory(ElevationParametersHandler::GetDEMDirectory(this, "elev")); - } - else - { - m_ResampleFilter->SetDEMDirectory(otb::ConfigurationFile::GetInstance()->GetDEMDirectory()); - } + m_ResampleFilter->SetDEMDirectory(ElevationParametersHandler::GetDEMDirectory(this, "elev")); } break; case Elevation_Average: -- GitLab