From 0eb0f801594cb15a9c03fd471b719c17dc5731a4 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Thu, 2 Apr 2009 16:05:47 +0800
Subject: [PATCH] BUG: otbSensorModel should instanciate only ossimSensorModel

---
 Code/Projections/otbSensorModelBase.txx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Code/Projections/otbSensorModelBase.txx b/Code/Projections/otbSensorModelBase.txx
index 02f4662e26..c77e84ce8f 100644
--- a/Code/Projections/otbSensorModelBase.txx
+++ b/Code/Projections/otbSensorModelBase.txx
@@ -145,7 +145,8 @@ SensorModelBase< TScalarType,NInputDimensions,NOutputDimensions,NParametersDimen
   image_kwl.convertToOSSIMKeywordlist(geom);
   otbMsgDevMacro(<< "CreateProjection(): ossimKeywordlist: " << geom);
 
-  m_Model = ossimProjectionFactoryRegistry::instance()->createProjection(geom);
+//   m_Model = ossimProjectionFactoryRegistry::instance()->createProjection(geom);
+  m_Model = ossimSensorModelFactory::instance()->createProjection(geom);
   if ( m_Model == NULL)
   {
     itkExceptionMacro(<< "Invalid Model pointer m_Model == NULL !\n The ossim keywordlist is bad!");
-- 
GitLab