Commit 56f33fa2 authored by Julien Osman's avatar Julien Osman

PERF: follow OTB guidlines + optimize a loop

parent ac178857
Pipeline #4157 passed with stages
in 77 minutes and 35 seconds
......@@ -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())
......
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