From db6dc49658fd4d4ef9fec57a00cc79cf92c59646 Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Thu, 9 Sep 2010 10:46:33 +0200 Subject: [PATCH] ENH : specify input projection & kwl due to filter simplification --- Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx b/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx index 56522f1e86..47956e0cb2 100644 --- a/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx +++ b/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx @@ -87,6 +87,9 @@ int otbGenericRSResampleImageFilter(int argc, char* argv[]) resampler->SetOutputSize(size); resampler->SetOutputSpacing(spacing); resampler->SetOutputProjectionRef(utmRef); + resampler->SetInputProjectionRef(reader->GetOutput()->GetProjectionRef()); + resampler->SetInputKeywordList(reader->GetOutput()->GetImageKeywordlist()); + // Write the resampled image typedef otb::StreamingImageFileWriter<ImageType> WriterType; -- GitLab