Skip to content
Snippets Groups Projects
Commit a62a0cd2 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: use input region instead of largestpossibleregion (need to review this modification)

parent 9a2e366a
No related branches found
No related tags found
No related merge requests found
...@@ -496,7 +496,7 @@ ImageFileWriter<TInputImage> ...@@ -496,7 +496,7 @@ ImageFileWriter<TInputImage>
inputRegion.SetSize(size); inputRegion.SetSize(size);
inputRegion.SetIndex(start); inputRegion.SetIndex(start);
std::cout << "inputRegion " << inputRegion << std::endl; otbMsgDevMacro(<< "inputRegion " << inputRegion);
} }
/** /**
...@@ -513,7 +513,11 @@ ImageFileWriter<TInputImage> ...@@ -513,7 +513,11 @@ ImageFileWriter<TInputImage>
"> does not support streaming."); "> does not support streaming.");
this->SetNumberOfDivisionsStrippedStreaming(1); this->SetNumberOfDivisionsStrippedStreaming(1);
} }
else if (inputPtr->GetBufferedRegion() == inputPtr->GetLargestPossibleRegion())
/** Compare the buffered region with the inputRegion which is the largest
* possible region or a user defined region through extended filename
* Not sure that if this modification is needed */
else if (inputPtr->GetBufferedRegion() == inputRegion)
{ {
otbMsgDevMacro(<< "Buffered region is the largest possible region, there is no need for streaming."); otbMsgDevMacro(<< "Buffered region is the largest possible region, there is no need for streaming.");
this->SetNumberOfDivisionsStrippedStreaming(1); this->SetNumberOfDivisionsStrippedStreaming(1);
......
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