Skip to content
Snippets Groups Projects
Commit d55001b4 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: setup OssimDEMHandler in the case where DEMHandler is not called

parent 2746e024
No related branches found
No related tags found
2 merge requests!57Update to OTB V8,!56Update to OTB v8
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment