Commit 195eaf46 authored by Julien Osman's avatar Julien Osman
Browse files

REFAC: Update ImageToGenericRSOutputParameters so it uses ImageMetadata instead of KeywordLists

parent e7980208
......@@ -23,6 +23,7 @@
#include "itkObject.h"
#include "otbGenericRSTransform.h"
#include "otbImageKeywordlist.h"
#include <string>
namespace otb
......@@ -148,16 +149,29 @@ public:
return m_Transform->GetOutputProjectionRef();
}
/** Set/Get Input Keywordlist*/
/** Set/Get Input Keywordlist
* \deprecated
* TODO: Remove before v8.0.0
*/
void SetInputKeywordList(const ImageKeywordlist& kwl)
{
m_Transform->SetOutputKeywordList(kwl);
this->Modified();
}
const ImageKeywordlist GetInputKeywordList()
{
return m_Transform->GetOutputKeywordList();
}
/** Set/Get Input ImageMetadata
*/
void SetInputImageMetadata(ImageMetadata* imd)
{
m_Transform->SetOutputImageMetadata(imd);
this->Modified();
}
const ImageMetadata* GetInputImageMetadata()
{
return m_Transform->GetOutputImageMetadata();
}
/** Method to trigger the output parameters */
......
......@@ -73,9 +73,8 @@ void ImageToGenericRSOutputParameters<TImage>::Compute()
template <class TImage>
void ImageToGenericRSOutputParameters<TImage>::UpdateTransform()
{
m_Transform->SetOutputDictionary(this->GetInput()->GetMetaDataDictionary());
m_Transform->SetOutputImageMetadata(this->GetInput()->GetImageMetadata());
m_Transform->SetOutputProjectionRef(this->GetInput()->GetProjectionRef());
m_Transform->SetOutputKeywordList(this->GetInput()->GetImageKeywordlist());
m_Transform->InstantiateTransform();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment