diff --git a/Testing/Code/Projections/CMakeLists.txt b/Testing/Code/Projections/CMakeLists.txt index ebd139b2864e6808ec9d0cca8a849b1e8004b4ca..4b941260185825f0db3804e0f3dcc45908192ceb 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 0000000000000000000000000000000000000000..222a34ee9400d3ab6ead315a21f93b05d10c1a4d --- /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 80e69c356bf05553a648e2ca3f15473726d4447c..83042ced75aff8a3b0463d536b8028ac3b47afaa 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); }