Skip to content
Snippets Groups Projects
Commit 56f33fa2 authored by Julien Osman's avatar Julien Osman
Browse files

PERF: follow OTB guidlines + optimize a loop

parent ac178857
No related branches found
No related tags found
No related merge requests found
......@@ -46,17 +46,21 @@ int otbExtendedFilenameToWriterOptions(int itkNotUsed(argc), char* argv[])
file << helper->gdalCreationOptionsIsSet() << std::endl;
if (helper->gdalCreationOptionsIsSet())
{
for (unsigned int i = 0; i < helper->GetgdalCreationOptions().size(); i++)
{
file << helper->GetgdalCreationOptions()[i] << std::endl;
}
}
file << helper->NoDataValueIsSet() << std::endl;
if (helper->NoDataValueIsSet())
for (unsigned int i = 0; i < helper->GetNoDataList().size(); i++)
{
for (auto const& nodata_kv : helper->GetNoDataList())
{
file << helper->GetNoDataList()[i].first << " ; " << helper->GetNoDataList()[i].second << std::endl;
file << nodata_kv.first << " ; " << nodata_kv.second << "\n";
}
}
file << helper->SrsValueIsSet() << std::endl;
if (helper->SrsValueIsSet())
......
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