From 19ef3fa3c184d8449e31202fab2727317b0aacb5 Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Wed, 23 Mar 2011 18:37:41 +0100
Subject: [PATCH] ENH : call the MapProjectionWrapper internal map projection
 instead of the wrapper itself

---
 Code/Projections/otbGenericRSTransform.txx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/Projections/otbGenericRSTransform.txx b/Code/Projections/otbGenericRSTransform.txx
index 2c8517dd24..5cbb86a5ff 100644
--- a/Code/Projections/otbGenericRSTransform.txx
+++ b/Code/Projections/otbGenericRSTransform.txx
@@ -117,7 +117,7 @@ GenericRSTransform<TScalarType, NInputDimensions, NOutputDimensions>
         InverseMapProjectionType;
     typename InverseMapProjectionType::Pointer mapTransform = InverseMapProjectionType::New();
     mapTransform->SetWkt(m_InputProjectionRef);
-    if (mapTransform->GetMapProjection() != NULL)
+    if (mapTransform->GetMapProjection()->GetMapProjection() != NULL)
       {
       m_InputTransform = mapTransform.GetPointer();
       inputTransformIsMap = true;
@@ -195,7 +195,7 @@ GenericRSTransform<TScalarType, NInputDimensions, NOutputDimensions>
     OutputSpaceDimension> ForwardMapProjectionType;
     typename ForwardMapProjectionType::Pointer mapTransform = ForwardMapProjectionType::New();
     mapTransform->SetWkt(m_OutputProjectionRef);
-    if (mapTransform->GetMapProjection() != NULL)
+    if (mapTransform->GetMapProjection()->GetMapProjection() != NULL)
       {
       m_OutputTransform = mapTransform.GetPointer();
       outputTransformIsMap = true;
-- 
GitLab