Skip to content
Snippets Groups Projects
Commit 6dad91e6 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: missing patches after refactoring of complex filenames

parent 0ae7b65f
No related branches found
No related tags found
No related merge requests found
......@@ -230,13 +230,19 @@ ViewerModel
bool isJPEG2000 = this->IsJPEG2000File(filename);
bool isHDF = this->IsHDFFile(filename);
// If jpeg2000 or HDF, add the selected resolution at the end of the file name
if( isJPEG2000 || isHDF)
// If jpeg2000 or HDF, add the selected resolution at the end of the
// file name
if(isJPEG2000)
{
otbFilepath += ":";
std::ostringstream ossRes;
ossRes << id;
otbFilepath += ossRes.str();
itk::OStringStream oss;
oss<<otbFilepath<<"?&resol="<<id;
otbFilepath = oss.str();
}
else if(isHDF)
{
itk::OStringStream oss;
oss<<otbFilepath<<"?&sdataidx="<<id;
otbFilepath = oss.str();
}
/** Reader*/
......@@ -255,8 +261,9 @@ ViewerModel
if( resSize > 0 )
{
std::string qlFname = filename + "?&resol=resSize-1";
jpeg2000QLReader->SetFileName(qlFname);
itk::OStringStream oss;
oss<<filename<<"?&resol="<<resSize-1;
jpeg2000QLReader->SetFileName(oss.str());
}
else
{
......
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