Skip to content
Snippets Groups Projects
Commit d3c8486f authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

TEST: ordered vector of string to get the same output on every OS

parent 04fcc3b6
No related branches found
No related tags found
1 merge request!24Handle extended filename for DataSource class
...@@ -19,9 +19,11 @@ ...@@ -19,9 +19,11 @@
*/ */
#include "otbOGRExtendedFilenameToOptions.h" #include "otbOGRExtendedFilenameToOptions.h"
#include <algorithm>
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
using namespace otb; using namespace otb;
...@@ -81,11 +83,12 @@ int otbOGRExtendedFileName(int , char* argv[]) ...@@ -81,11 +83,12 @@ int otbOGRExtendedFileName(int , char* argv[])
file << layerHelper->HasGDALLayerOption() << std::endl; file << layerHelper->HasGDALLayerOption() << std::endl;
file << "Layer option from layer helper:"<<std::endl; file << "Layer option from layer helper:"<<std::endl;
FilenameHelperType::GDALOptionType latestOptions = layerHelper->GetGDALOptions("layer"); FilenameHelperType::GDALOptionType latestOptions = layerHelper->GetGDALOptions("layer");
for ( auto option : latestOptions ) // need to sort for dummy windows
std::sort( latestOptions.begin() , latestOptions.end() );
for ( auto option : latestOptions )
{ {
file<< option << std::endl; file<< option << std::endl;
} }
// test
file.close(); file.close();
return EXIT_SUCCESS; return EXIT_SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment