From 0e097c6382560f5d1fa16afcd0bedf6038e886b2 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Tue, 3 Feb 2009 18:07:09 +0800
Subject: [PATCH] TEST: add instanciation test for otbGeocentricTransform

---
 Testing/Code/Projections/CMakeLists.txt       |  3 +-
 .../Projections/otbGeocentricTransformNew.cxx | 35 +++++++++++++++++++
 .../Code/Projections/otbProjectionsTests3.cxx |  1 +
 3 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 Testing/Code/Projections/otbGeocentricTransformNew.cxx

diff --git a/Testing/Code/Projections/CMakeLists.txt b/Testing/Code/Projections/CMakeLists.txt
index ebd139b286..4b94126018 100644
--- a/Testing/Code/Projections/CMakeLists.txt
+++ b/Testing/Code/Projections/CMakeLists.txt
@@ -436,7 +436,7 @@ ADD_TEST(prTvVectorDataProjectionFilterFromMapToGeo ${PROJECTIONS_TESTS3}
         ${TEMP}/prTvVectorDataProjectionFilterFromMapToGeo.kml
 )
 
-
+ADD_TEST(prTuGeocentricTransformNew ${PROJECTIONS_TESTS3}  otbGeocentricTransformNew )
 
 #=======================================================================================
 SET(Projections_SRCS1
@@ -467,6 +467,7 @@ otbVectorDataProjectionFilterNew.cxx
 otbVectorDataProjectionFilter.cxx
 otbVectorDataProjectionFilterFromMapToSensor.cxx
 otbVectorDataProjectionFilterFromMapToGeo.cxx
+otbGeocentricTransformNew.cxx
 )
 
 
diff --git a/Testing/Code/Projections/otbGeocentricTransformNew.cxx b/Testing/Code/Projections/otbGeocentricTransformNew.cxx
new file mode 100644
index 0000000000..222a34ee94
--- /dev/null
+++ b/Testing/Code/Projections/otbGeocentricTransformNew.cxx
@@ -0,0 +1,35 @@
+/*=========================================================================
+
+  Program:   ORFEO Toolbox
+  Language:  C++
+  Date:      $Date$
+  Version:   $Revision$
+
+
+  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
+  See OTBCopyright.txt for details.
+
+
+     This software is distributed WITHOUT ANY WARRANTY; without even
+     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+     PURPOSE.  See the above copyright notices for more information.
+
+=========================================================================*/
+#if defined(_MSC_VER)
+#pragma warning ( disable : 4786 )
+#endif
+
+#include "otbMacro.h"
+#include "otbImage.h"
+#include "otbGeocentricTransform.h"
+
+int otbGeocentricTransformNew( int argc, char* argv[] )
+{
+
+  typedef otb::GeocentricTransform<otb::FORWARD> ProjectionType;
+  ProjectionType::Pointer projection = ProjectionType::New();
+
+
+  return EXIT_SUCCESS;
+
+}
diff --git a/Testing/Code/Projections/otbProjectionsTests3.cxx b/Testing/Code/Projections/otbProjectionsTests3.cxx
index 80e69c356b..83042ced75 100644
--- a/Testing/Code/Projections/otbProjectionsTests3.cxx
+++ b/Testing/Code/Projections/otbProjectionsTests3.cxx
@@ -35,4 +35,5 @@ void RegisterTests()
   REGISTER_TEST(otbVectorDataProjectionFilter);
   REGISTER_TEST(otbVectorDataProjectionFilterFromMapToSensor);
   REGISTER_TEST(otbVectorDataProjectionFilterFromMapToGeo);
+  REGISTER_TEST(otbGeocentricTransformNew);
 }
-- 
GitLab