Skip to content
Snippets Groups Projects
Commit 6a4df3f7 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : orthodem test

parent f04e9454
Branches
Tags
No related merge requests found
...@@ -79,7 +79,8 @@ DEMToOrthoImageGenerator<TDEMImage, TMapProjection> ...@@ -79,7 +79,8 @@ DEMToOrthoImageGenerator<TDEMImage, TMapProjection>
if (!m_MapProjection) if (!m_MapProjection)
{ {
itkExceptionMacro( << "Please set map projection!" ); itkExceptionMacro( <<
"Please set map projection!" );
} }
DEMImagePointerType DEMImage = this->GetOutput(); DEMImagePointerType DEMImage = this->GetOutput();
......
...@@ -1739,13 +1739,13 @@ ADD_TEST(ioTvDEMToOrthoImageGeneratorTest ${IO_TESTS17} ...@@ -1739,13 +1739,13 @@ ADD_TEST(ioTvDEMToOrthoImageGeneratorTest ${IO_TESTS17}
otbDEMToOrthoImageGeneratorTest otbDEMToOrthoImageGeneratorTest
${INPUTDATA}/DEM/srtm_directory ${INPUTDATA}/DEM/srtm_directory
${TEMP}/ioTvDEMToOrthoImageGenerator.tif ${TEMP}/ioTvDEMToOrthoImageGenerator.tif
6.5 773441 #6.5
44.5 5044457 #44.5
500 500
500 500
0.002 200 #0.002
0.002 -200 #0.002
31 # utm zone 48 #31 # utm zone
N # hemisphere N # hemisphere
) )
......
...@@ -26,7 +26,7 @@ int otbDEMToOrthoImageGeneratorTest(int argc, char * argv[]) ...@@ -26,7 +26,7 @@ int otbDEMToOrthoImageGeneratorTest(int argc, char * argv[])
{ {
if (argc<9) 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; return EXIT_FAILURE;
} }
...@@ -59,6 +59,7 @@ int otbDEMToOrthoImageGeneratorTest(int argc, char * argv[]) ...@@ -59,6 +59,7 @@ int otbDEMToOrthoImageGeneratorTest(int argc, char * argv[])
SpacingType spacing; SpacingType spacing;
spacing[0] = ::atof(argv[7]); spacing[0] = ::atof(argv[7]);
spacing[1] = ::atof(argv[8]); spacing[1] = ::atof(argv[8]);
std::cout<<atoi(argv[9])<<std::endl;
mapProj->SetZone(::atoi(argv[9])); mapProj->SetZone(::atoi(argv[9]));
mapProj->SetHemisphere(argv[10][0]); mapProj->SetHemisphere(argv[10][0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment