Commit 1de2379d authored by Julien Michel's avatar Julien Michel

COMP: Replace calls to GetName() by otb::ogr::version_proxy::GetFileListAsStringVector()

parent aef1745f
......@@ -206,10 +206,10 @@ int main (int argc, char **argv)
= options.workingInplace ? input
: options.outputIsStdout ? 0
: otb::ogr::DataSource::New( options.outputFile, otb::ogr::DataSource::Modes::Update_LayerCreateOnly);
std::cout << "input: " << input -> ogr().GetName() << " should be: " << options.inputFile << "\n";
std::cout << "input: " << otb::ogr::version_proxy::GetFileListAsStringVector(&input->ogr())[0] << " should be: " << options.inputFile << "\n";
if (output)
{
std::cout << "output: " << output -> ogr().GetName() << " should be: " << options.outputFile << "\n";
std::cout << "output: " << otb::ogr::version_proxy::GetFileListAsStringVector(&output->ogr())[0] << " should be: " << options.outputFile << "\n";
}
// std::cout << "\n";
......
......@@ -73,10 +73,10 @@ int main (int argc, char **argv)
= workingInplace ? input
: outputIsStdout ? 0
: otb::ogr::DataSource::New( outputFile, otb::ogr::DataSource::Modes::Update_LayerCreateOnly);
std::cout << "input: " << input -> ogr().GetName() << " should be: " << inputFile << "\n";
std::cout << "input: " << otb::ogr::version_proxy::GetFileListAsStringVector(&input->ogr())[0] << " should be: " << inputFile << "\n";
if (output)
{
std::cout << "output: " << output -> ogr().GetName() << " should be: " << outputFile << "\n";
std::cout << "output: " << otb::ogr::version_proxy::GetFileListAsStringVector(&output->ogr())[0] << " should be: " << outputFile << "\n";
}
// std::cout << "\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment