From 223d54cd9be28f7fe54c51303e013a86c6138803 Mon Sep 17 00:00:00 2001
From: Patrick Imbo <patrick.imbo@c-s.fr>
Date: Wed, 3 Nov 2010 10:30:08 +0100
Subject: [PATCH] ENH: The Default unknown value is not an attribut of the
 DEMToImageGenerator class --> Suppressed

---
 Code/IO/otbDEMToImageGenerator.h   | 7 -------
 Code/IO/otbDEMToImageGenerator.txx | 2 ++
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/Code/IO/otbDEMToImageGenerator.h b/Code/IO/otbDEMToImageGenerator.h
index b3b8c70304..950b7b6c49 100644
--- a/Code/IO/otbDEMToImageGenerator.h
+++ b/Code/IO/otbDEMToImageGenerator.h
@@ -99,10 +99,6 @@ public:
   itkSetMacro(OutputSpacing, SpacingType);
   itkGetConstReferenceMacro(OutputSpacing, SpacingType);
 
-  /** Set/Get the Default Unknown Value. */
-  itkSetMacro(DefaultUnknownValue, PixelType);
-  itkGetConstReferenceMacro(DefaultUnknownValue, PixelType);
-
   /** Set/Get the Default Unknown Value. */
   itkSetObjectMacro(Transform, GenericRSTransformType);
   itkGetObjectMacro(Transform, GenericRSTransformType);
@@ -116,7 +112,6 @@ public:
   itkSetObjectMacro(DEMFunction, DEMFunctionBaseType);
   itkGetConstObjectMacro(DEMFunction, DEMFunctionBaseType);
 
-
   /**
    * Set/Get input & output projections.
    * Set/Get input & output keywordlist
@@ -192,8 +187,6 @@ protected:
   PointType               m_OutputOrigin;
   SpacingType             m_OutputSpacing;
   SizeType                m_OutputSize;
-  PixelType               m_DefaultUnknownValue;
-
   DEMFunctionBasePointer  m_DEMFunction;
 
 private:
diff --git a/Code/IO/otbDEMToImageGenerator.txx b/Code/IO/otbDEMToImageGenerator.txx
index e4c0128a1c..4f76660bf0 100644
--- a/Code/IO/otbDEMToImageGenerator.txx
+++ b/Code/IO/otbDEMToImageGenerator.txx
@@ -38,6 +38,8 @@ DEMToImageGenerator<TDEMImage>
   m_OutputOrigin[1] = 0;
 
   m_Transform         = GenericRSTransformType::New();
+  m_DEMFunction       = SRTMFunctionType::New();
+
 }
 
 // DEM folder specification method
-- 
GitLab