diff --git a/Applications/Projections/otbBundleToPerfectSensor.cxx b/Applications/Projections/otbBundleToPerfectSensor.cxx index 2789bb9743a76e2c34fd404c1af6ca67330b308a..fabff99bdf99f2ed39672bca5005674986d97de1 100644 --- a/Applications/Projections/otbBundleToPerfectSensor.cxx +++ b/Applications/Projections/otbBundleToPerfectSensor.cxx @@ -322,6 +322,14 @@ private: basicResampler->SetEdgePaddingValue(defaultValue); fusionFilter->SetXsInput(basicResampler->GetOutput()); + + // Set the profRef & Keywordlist from Pan into the resampled XS image + basicResampler->UpdateOutputInformation(); + itk::MetaDataDictionary& dict = basicResampler->GetOutput()->GetMetaDataDictionary(); + itk::EncapsulateMetaData<std::string>(dict, MetaDataKey::ProjectionRefKey, + panchro->GetProjectionRef()); + itk::EncapsulateMetaData<ImageKeywordlist>(dict, MetaDataKey::OSSIMKeywordlistKey, + panchro->GetImageKeywordlist()); } break; default: