Commit 3a456250 authored by Julien Osman's avatar Julien Osman
Browse files

ENH: Remove deprecated methods and fixe the corresponding calls

parent c0a56e4a
Pipeline #5686 failed with stages
in 42 minutes and 5 seconds
......@@ -134,7 +134,7 @@ private:
if (HasValue("in.kwl"))
{
FloatVectorImageType::Pointer inImage = GetParameterFloatVectorImage("in.kwl");
m_GeometriesProjFilter->SetInputKeywordList(inImage->GetImageKeywordlist());
m_GeometriesProjFilter->SetInputImageMetadata(inImage->GetImageMetadata());
// otbAppLogINFO(<<"kwl."<<std::endl);
}
......
......@@ -74,6 +74,11 @@ void GenericRSTransform<TScalarType, NInputDimensions, NOutputDimensions>::Insta
{
m_Transform = TransformType::New();
if (m_InputProjectionRef.empty() && m_InputImd->Has(MDGeom::ProjectionProj))
{
m_InputProjectionRef = boost::any_cast<std::string>(m_InputImd->operator[](MDGeom::ProjectionProj));
}
otbMsgDevMacro(<< "Information to instantiate transform: ");
otbMsgDevMacro(<< " * Input Origin: " << m_InputOrigin);
otbMsgDevMacro(<< " * Input Spacing: " << m_InputSpacing);
......
......@@ -28,7 +28,7 @@ namespace otb
template <class TScalarType, unsigned int NInputDimensions, unsigned int NOutputDimensions>
typename RPCForwardTransform<TScalarType, NInputDimensions, NOutputDimensions>::OutputPointType
RPCForwardTransform<TScalarType, NInputDimensions, NOutputDimensions>::TransformPoint(const RPCForwardTransform<TScalarType, NInputDimensions, NOutputDimensions>::InputPointType& point) const
RPCForwardTransform<TScalarType, NInputDimensions, NOutputDimensions>::TransformPoint(const InputPointType& point) const
{
GDALRPCTransformer::PointType zePoint;
zePoint[0] = static_cast<double>(point[0]);
......
......@@ -254,12 +254,6 @@ public:
void SetOutputOrigin(ImageReference::OriginType const& origin);
//@}
/**\name Keywords lists accessors and mutators
* \deprecated
*/
ImageKeywordlist& GetInputKeywordList(){};
void SetInputKeywordList(const ImageKeywordlist& kwl){};
/**\name ImageMetadata accessors and mutators */
//@{
itkGetMacro(InputImageMetadata, ImageMetadata*);
......
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