Commit 4432f301 authored by Julien Osman's avatar Julien Osman

BUG: Fix tests for ExtendedFilenameToWriterOptions with nodata extention

parent c213cb8d
......@@ -6,3 +6,5 @@
BLOCKYSIZE=1024
QUALITY=75
TILED=YES
1
1 ; -99999
......@@ -58,7 +58,7 @@ otb_add_test(NAME ioTvExtendedFilenameToReaderOptions_FullOptions COMMAND otbExt
${BASELINE}/ioTvExtendedFilenameToReaderOptions_FullOptions.txt
${TEMP}/ioTvExtendedFilenameToReaderOptions_FullOptions.txt
otbExtendedFilenameToReaderOptions
/home/data/filename.tif?&geom=/home/dev/custom.geom&sdataidx=2&resol=4&skipcarto=On&bands=-23,:3,45:,-6:-6,234:-5&nodata=-99999
/home/data/filename.tif?&geom=/home/dev/custom.geom&sdataidx=2&resol=4&skipcarto=On&bands=-23,:3,45:,-6:-6,234:-5
${TEMP}/ioTvExtendedFilenameToReaderOptions_FullOptions.txt
)
......@@ -86,7 +86,7 @@ otb_add_test(NAME ioTvExtendedFilenameToWriterOptions_FullOptions COMMAND otbExt
${BASELINE}/ioTvExtendedFilenameToWriterOptions_FullOptions.txt
${TEMP}/ioTvExtendedFilenameToWriterOptions_FullOptions.txt
otbExtendedFilenameToWriterOptions
/home/data/filename.tif?&writegeom=ON&gdal:co:QUALITY=75&gdal:co:TILED=YES&gdal:co:BLOCKYSIZE=1024
/home/data/filename.tif?&writegeom=ON&gdal:co:QUALITY=75&gdal:co:TILED=YES&gdal:co:BLOCKYSIZE=1024&nodata=-99999
${TEMP}/ioTvExtendedFilenameToWriterOptions_FullOptions.txt
)
......
......@@ -50,5 +50,12 @@ int otbExtendedFilenameToWriterOptions(int itkNotUsed(argc), char* argv[])
file << helper->GetgdalCreationOptions()[i] << std::endl;
}
file << helper->NoDataValueIsSet() << std::endl;
if (helper->NoDataValueIsSet())
for (unsigned int i = 0; i < helper->GetNoDataList().size(); i++)
{
file << helper->GetNoDataList()[i].first << " ; " << helper->GetNoDataList()[i].second << std::endl;
}
return EXIT_SUCCESS;
}
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