Skip to content
Snippets Groups Projects
Commit fa25f559 authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

TEST: adapted previous external geom test

parent ba1594d4
Branches
Tags
No related merge requests found
...@@ -29,7 +29,7 @@ void RegisterTests() ...@@ -29,7 +29,7 @@ void RegisterTests()
REGISTER_TEST(otbMWImageIOTestCanRead); REGISTER_TEST(otbMWImageIOTestCanRead);
REGISTER_TEST(otbMWImageIOTestCanWrite); REGISTER_TEST(otbMWImageIOTestCanWrite);
REGISTER_TEST(otbImageFileReaderTest); REGISTER_TEST(otbImageFileReaderTest);
REGISTER_TEST(otbImageFileReaderWithExternalGEOMFile); REGISTER_TEST(otbImageFileReaderWithExtendedFilename);
REGISTER_TEST(otbImageFileReaderTestFloat); REGISTER_TEST(otbImageFileReaderTestFloat);
REGISTER_TEST(otbShortImageIOTest); REGISTER_TEST(otbShortImageIOTest);
REGISTER_TEST(otbImageIOFactoryNew); REGISTER_TEST(otbImageIOFactoryNew);
......
...@@ -53,12 +53,11 @@ int otbImageFileReaderTest(int argc, char* argv[]) ...@@ -53,12 +53,11 @@ int otbImageFileReaderTest(int argc, char* argv[])
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
int otbImageFileReaderWithExternalGEOMFile(int argc, char* argv[]) int otbImageFileReaderWithExtendedFilename(int argc, char* argv[])
{ {
// Verify the number of parameters in the command line // Verify the number of parameters in the command line
const char * inputFilename = argv[1]; const char * inputFilename = argv[1];
const char * inputGEOMFilename = argv[2]; const char * outputFilename = argv[2];
const char * outputFilename = argv[3];
typedef float InputPixelType; typedef float InputPixelType;
const unsigned int Dimension = 2; const unsigned int Dimension = 2;
...@@ -73,7 +72,6 @@ int otbImageFileReaderWithExternalGEOMFile(int argc, char* argv[]) ...@@ -73,7 +72,6 @@ int otbImageFileReaderWithExternalGEOMFile(int argc, char* argv[])
file.open(outputFilename); file.open(outputFilename);
reader->SetFileName(inputFilename); reader->SetFileName(inputFilename);
reader->SetExtGEOMFilename(inputGEOMFilename);
reader->Update(); reader->Update();
file << reader->GetOutput()->GetImageKeywordlist(); file << reader->GetOutput()->GetImageKeywordlist();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment