Commit 40dfadb8 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

TEST: fix the test for DEMToOrthoImageGenerator

parent 89e29a59
......@@ -103,14 +103,14 @@ DEMToOrthoImageGenerator<TDEMImage, TMapProjection>
DEMImage->TransformIndexToPhysicalPoint(currentindex, cartoPoint);
otbMsgDevMacro(<< "CartoPoint : (" << cartoPoint[0] << "," << cartoPoint[1] << ")");
// otbMsgDevMacro(<< "CartoPoint: (" << cartoPoint[0] << "," << cartoPoint[1] << ")");
geoPoint = m_MapProjection->TransformPoint(cartoPoint);
otbMsgDevMacro(<< "CartoPoint : (" << geoPoint[0] << "," << geoPoint[1] << ")");
// otbMsgDevMacro(<< "CartoPoint: (" << geoPoint[0] << "," << geoPoint[1] << ")");
height=m_DEMHandler->GetHeightAboveMSL(geoPoint); // Altitude calculation
otbMsgDevMacro(<< "height" << height);
// otbMsgDevMacro(<< "height: " << height);
// MNT sets a default value (-32768) at point where it doesn't have altitude information.
// OSSIM has chosen to change this default value in OSSIM_DBL_NAN (-4.5036e15).
if (!ossim::isnan(height))
......
......@@ -1403,13 +1403,13 @@ ADD_TEST(ioTvDEMToOrthoImageGeneratorTest ${IO_TESTS12}
otbDEMToOrthoImageGeneratorTest
${INPUTDATA}/DEM/srtm_directory
${TEMP}/ioTvDEMToOrthoImageGenerator.tif
773441 #6.5
5044457 #44.5
778245.3501 #6.5
4933369.633 #44.5
500
500
200 #0.002
-200 #0.002
48 #31 # utm zone
30 #resolution in m
-30 #resolution in m
31 # utm zone
N # hemisphere
)
......
......@@ -35,8 +35,8 @@ int otbDEMToOrthoImageGeneratorTest(int argc, char * argv[])
const unsigned int Dimension = 2;
typedef otb::Image<double, Dimension> ImageType;
typedef otb::UtmForwardProjection MapProjectionType;
typedef otb::DEMToOrthoImageGenerator<ImageType, otb::UtmForwardProjection> DEMToImageGeneratorType;
typedef otb::UtmInverseProjection MapProjectionType;
typedef otb::DEMToOrthoImageGenerator<ImageType, MapProjectionType> DEMToImageGeneratorType;
typedef DEMToImageGeneratorType::DEMHandlerType DEMHandlerType;
typedef DEMHandlerType::PointType PointType;
typedef DEMToImageGeneratorType::SizeType SizeType;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment