From b475a3971035297605da7c033fb991e39e97692f Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Tue, 13 Dec 2011 14:51:19 +0100
Subject: [PATCH] ENH: use the right keys for elevation

---
 Testing/Applications/DisparityMap/CMakeLists.txt | 6 ++++--
 Testing/Applications/Projections/CMakeLists.txt  | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Testing/Applications/DisparityMap/CMakeLists.txt b/Testing/Applications/DisparityMap/CMakeLists.txt
index e2b803fa52..0657a98cf3 100644
--- a/Testing/Applications/DisparityMap/CMakeLists.txt
+++ b/Testing/Applications/DisparityMap/CMakeLists.txt
@@ -13,7 +13,8 @@ OTB_TEST_APPLICATION(NAME  apTvDmStereoSensorModelToElevationMapTest
                              -minh -20.0
                              -maxh 20.0
                              -step 1.0
-                             -dem ${INPUTDATA}/DEM/srtm_directory/
+                             -elev dem
+                             -elev.dem.path ${INPUTDATA}/DEM/srtm_directory/
                              -geoid ${INPUTDATA}/DEM/egm96.grd
                      VALID   --compare-image ${EPSILON_10}
                              ${BASELINE}/apTvDmStereoSensorModelToElevationMapTest.tif
@@ -30,7 +31,8 @@ OTB_TEST_APPLICATION(NAME  apTvDmStereoSensorModelToElevationMapWithSmoothing
                              -minh -20.0
                              -maxh 20.0
                              -step 1.0
-                             -dem ${INPUTDATA}/DEM/srtm_directory/
+                             -elev dem
+                             -elev.dem.path ${INPUTDATA}/DEM/srtm_directory/
                              -geoid ${INPUTDATA}/DEM/egm96.grd
                              -rgs 2.0
                              -sgs 2.0
diff --git a/Testing/Applications/Projections/CMakeLists.txt b/Testing/Applications/Projections/CMakeLists.txt
index 9808e6cef7..cfd6391c96 100644
--- a/Testing/Applications/Projections/CMakeLists.txt
+++ b/Testing/Applications/Projections/CMakeLists.txt
@@ -6,7 +6,7 @@ OTB_TEST_APPLICATION(NAME  apTvPrOrthorectification_UTM
                      OPTIONS -io.in ${OTB_DATA_LARGEINPUT_ROOT}/QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF
                  			 -io.out ${TEMP}/apTvPrOrthorectifTest_UTM.tif
                                          -elev  dem
-                 			 -elev.dem.value ${INPUTDATA}/DEM/srtm_directory/
+                 			 -elev.dem.path ${INPUTDATA}/DEM/srtm_directory/
                  		     -outputs.ulx  374100.8
                  			 -outputs.uly  4829184.8
                  			 -outputs.sizex 500
-- 
GitLab