diff --git a/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx b/Testing/Code/Projections/otbGenericRSResampleImageFilter.cxx
index 56522f1e8617a5bf9b3933ed4358494ef8ca3ebd..47956e0cb24c9e5638be9157b48d645df2cc3748 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;