From a4c3080fb7c529ac35e45974bf7a0c37739eb851 Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Fri, 14 Oct 2011 11:42:57 +0200
Subject: [PATCH] ADD: orthorectif tests

---
 Testing/Applications/CMakeLists.txt           |  1 +
 .../Applications/Projections/CMakeLists.txt   | 45 +++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 Testing/Applications/Projections/CMakeLists.txt

diff --git a/Testing/Applications/CMakeLists.txt b/Testing/Applications/CMakeLists.txt
index 4deffb7567..a84279aeca 100644
--- a/Testing/Applications/CMakeLists.txt
+++ b/Testing/Applications/CMakeLists.txt
@@ -23,3 +23,4 @@ add_subdirectory(FeatureExtraction)
 add_subdirectory(Hyperspectral)
 add_subdirectory(Segmentation)
 add_subdirectory(Util)
+add_subdirectory(Projections)
diff --git a/Testing/Applications/Projections/CMakeLists.txt b/Testing/Applications/Projections/CMakeLists.txt
new file mode 100644
index 0000000000..dfb36e14cb
--- /dev/null
+++ b/Testing/Applications/Projections/CMakeLists.txt
@@ -0,0 +1,45 @@
+
+set(TEST_DRIVER otbTestDriver
+    --add-before-env ITK_AUTOLOAD_PATH $<TARGET_FILE_DIR:otbapp_ReadImageInfo> )
+
+#--- Rescale ---#
+
+
+
+IF(OTB_DATA_USE_LARGEINPUT)
+
+add_test(NAME apTvUtORthorectificationTest_UTM
+         COMMAND otbTestDriver
+                 Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
+                 OrthoRectification
+                 --modulePath $<TARGET_FILE_DIR:otbapp_Rescale>
+                 --in ${LARGEINPUT}/QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF
+                 --out ${TEMP}/owTvOrthorectifTest_UTM.tif
+                 --dem ${INPUTDATA}/DEM/srtm_directory/
+                 --outputs.uservalues 0
+                 --outputs.ulx  374100.8
+                 --outputs.uly  4829184.8
+                 --outputs.sizex 500
+                 --outputs.sizey 500
+                 #         220
+                 --outputs.spacingx  0.5
+                 --outputs.spacingy  -0.5
+                 --map utm
+                 --map.utm.zone 31
+                 --map.utm.hem 1
+                 --rpc.ncp 100
+                 #4 # Spacing of the deformation field
+                 )
+
+#add_test(NAME apTvUtReadImageInfoSpot5
+#         COMMAND otbTestDriver
+#                 Execute $<TARGET_FILE:otbApplicationLauncherCommandLine>
+#                 ReadImageInfo
+#                 --modulePath $<TARGET_FILE_DIR:otbapp_ReadImageInfo>
+#                 --in ${LARGEDATA}/SPOT5/TEHERAN/IMAGERY.TIF )
+
+
+
+ENDIF(OTB_DATA_USE_LARGEINPUT)
+
+
-- 
GitLab