diff --git a/Code/IO/otbDEMToOrthoImageGenerator.txx b/Code/IO/otbDEMToOrthoImageGenerator.txx index 292ff95b0c44bcaf38b024a11c50a0a909fcb432..24302d040d5dc2d44ed9fd0b92869a3aef6aca32 100644 --- a/Code/IO/otbDEMToOrthoImageGenerator.txx +++ b/Code/IO/otbDEMToOrthoImageGenerator.txx @@ -79,7 +79,8 @@ DEMToOrthoImageGenerator<TDEMImage, TMapProjection> if (!m_MapProjection) { - itkExceptionMacro( << "Please set map projection!" ); + itkExceptionMacro( << + "Please set map projection!" ); } DEMImagePointerType DEMImage = this->GetOutput(); diff --git a/Testing/Code/IO/CMakeLists.txt b/Testing/Code/IO/CMakeLists.txt index 971c3115b47a72b3aaa134c6602ba072555e6bfb..dfab0038d96ee58f4e9746f987bf267d915aaaf6 100755 --- a/Testing/Code/IO/CMakeLists.txt +++ b/Testing/Code/IO/CMakeLists.txt @@ -1739,13 +1739,13 @@ ADD_TEST(ioTvDEMToOrthoImageGeneratorTest ${IO_TESTS17} otbDEMToOrthoImageGeneratorTest ${INPUTDATA}/DEM/srtm_directory ${TEMP}/ioTvDEMToOrthoImageGenerator.tif - 6.5 - 44.5 + 773441 #6.5 + 5044457 #44.5 500 500 - 0.002 - 0.002 - 31 # utm zone + 200 #0.002 + -200 #0.002 + 48 #31 # utm zone N # hemisphere ) diff --git a/Testing/Code/IO/otbDEMToOrthoImageGeneratorTest.cxx b/Testing/Code/IO/otbDEMToOrthoImageGeneratorTest.cxx index 3cba24c17f0c706479788e8ae88a4a56ae4dd551..0822d22317ab32bdba9933377cfa846d119383c3 100644 --- a/Testing/Code/IO/otbDEMToOrthoImageGeneratorTest.cxx +++ b/Testing/Code/IO/otbDEMToOrthoImageGeneratorTest.cxx @@ -26,7 +26,7 @@ int otbDEMToOrthoImageGeneratorTest(int argc, char * argv[]) { if (argc<9) { - std::cout << argv[0] <<" folder path , output filename , Longitude Output Orign point , Latitude Output Origin point , X Output Size, Y Output size , X Spacing , Y Spacing" << std::endl; + std::cout << argv[0] <<" DEM folder path , output filename , Easting Output Orign point , Northing Output Origin point , X Output Size, Y Output size , X Spacing , Y Spacing" << std::endl; return EXIT_FAILURE; } @@ -59,6 +59,7 @@ int otbDEMToOrthoImageGeneratorTest(int argc, char * argv[]) SpacingType spacing; spacing[0] = ::atof(argv[7]); spacing[1] = ::atof(argv[8]); + std::cout<<atoi(argv[9])<<std::endl; mapProj->SetZone(::atoi(argv[9])); mapProj->SetHemisphere(argv[10][0]);