From a62a0cd2eea96a9151744a5803018085b54c3d0d Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org> Date: Tue, 26 Mar 2013 11:26:29 +0100 Subject: [PATCH] ENH: use input region instead of largestpossibleregion (need to review this modification) --- Code/IO/otbImageFileWriter.txx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Code/IO/otbImageFileWriter.txx b/Code/IO/otbImageFileWriter.txx index f7efe60315..d1b8e25791 100644 --- a/Code/IO/otbImageFileWriter.txx +++ b/Code/IO/otbImageFileWriter.txx @@ -496,7 +496,7 @@ ImageFileWriter<TInputImage> inputRegion.SetSize(size); inputRegion.SetIndex(start); - std::cout << "inputRegion " << inputRegion << std::endl; + otbMsgDevMacro(<< "inputRegion " << inputRegion); } /** @@ -513,7 +513,11 @@ ImageFileWriter<TInputImage> "> does not support streaming."); 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."); this->SetNumberOfDivisionsStrippedStreaming(1); -- GitLab