diff --git a/include/otbSARDEMPolygonsAnalysisImageFilter.txx b/include/otbSARDEMPolygonsAnalysisImageFilter.txx index b722880b103e83d32587f81e16dd3064e7b0186c..c9594a58c529e58af71c533dd87cf35d061437d2 100644 --- a/include/otbSARDEMPolygonsAnalysisImageFilter.txx +++ b/include/otbSARDEMPolygonsAnalysisImageFilter.txx @@ -33,6 +33,7 @@ #include <cmath> #include <type_traits> +#include "otbOssimDEMHandler.h" namespace otb { @@ -43,6 +44,8 @@ namespace otb SARDEMPolygonsAnalysisImageFilter< TImageIn ,TImageOut, TImageDEM, TImageSAR, TFunction >::SARDEMPolygonsAnalysisImageFilter() : m_SarSensorModelAdapter(ITK_NULLPTR), m_Gain(100.), m_Margin(0), m_NoData(-32768), m_MLRan(1), m_MLAzi(1) { + // Setup Ossim, in case otb::DEMHandler singleton is not instanciated. + otb::OssimDEMHandler::Instance()->SetDefaultHeightAboveEllipsoid(0.0); } /**