diff --git a/Testing/Code/Segmentation/CMakeLists.txt b/Testing/Code/Segmentation/CMakeLists.txt index bb463bf5e56fae8d705040551c2ee7b117e80f45..212e1644a3d9f3040078310c45b8e46a63b8be2a 100644 --- a/Testing/Code/Segmentation/CMakeLists.txt +++ b/Testing/Code/Segmentation/CMakeLists.txt @@ -121,7 +121,6 @@ ADD_TEST(obTuOGRLayerStreamStitchingFilter ${SEGMENTATION_TESTS1} ${INPUTDATA}/QB_Toulouse_Ortho_PAN.tif ${INPUTDATA}/QB_Toulouse_Ortho_withTiles.shp ${TEMP}/obTvFusionOGRTile.shp - layer 112 ) diff --git a/Testing/Code/Segmentation/otbOGRLayerStreamStitchingFilter.cxx b/Testing/Code/Segmentation/otbOGRLayerStreamStitchingFilter.cxx index b52febb0a8d2b95526245e9f93fce0c5de8ac689..29929afefc73a7f727577e0b1f6a1eec20782172 100644 --- a/Testing/Code/Segmentation/otbOGRLayerStreamStitchingFilter.cxx +++ b/Testing/Code/Segmentation/otbOGRLayerStreamStitchingFilter.cxx @@ -24,18 +24,17 @@ int otbOGRLayerStreamStitchingFilter(int argc, char * argv[]) { - if (argc != 6) + if (argc != 5) { std::cerr << "Usage: " << argv[0]; - std::cerr << " inputImage inputOGR outputOGR layerName streamingSize" << std::endl; + std::cerr << " inputImage inputOGR outputOGR streamingSize" << std::endl; return EXIT_FAILURE; } const char * infname = argv[1]; const char * inOGRfname = argv[2]; const char * tmpOGRfname = argv[3]; - const char * layerName = argv[4]; - unsigned int size = atoi(argv[5]); + unsigned int size = atoi(argv[4]); /** Typedefs */ const unsigned int Dimension = 2; @@ -69,6 +68,7 @@ int otbOGRLayerStreamStitchingFilter(int argc, char * argv[]) out = outPathName+"/"+outBaseName+".prj"; itksys::SystemTools::CopyAFile(in.c_str(),out.c_str(),true); + const std::string layerName = outBaseName; reader->SetFileName(infname); reader->UpdateOutputInformation();