From 552d53a6bc4882bfb8b6b5f1d9b257b5e013caee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr>
Date: Tue, 1 Sep 2020 19:01:26 +0200
Subject: [PATCH] BUG: use new DEMHandler API

---
 Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx b/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx
index 9a42d77b47..6cd218ec81 100644
--- a/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx
+++ b/Modules/IO/KMZWriter/test/otbKmzProductWriter.cxx
@@ -56,7 +56,7 @@ int otbKmzProductWriter(int argc, char* argv[])
   ReaderType::Pointer reader = ReaderType::New();
   reader->SetFileName(infname);
 
-  otb::DEMHandler::Instance()->OpenDEMDirectory(demPath);
+  otb::DEMHandler::GetInstance().OpenDEMDirectory(demPath);
 
   GCPsToSensorModelFilterType::Pointer rpcEstimator = GCPsToSensorModelFilterType::New();
   rpcEstimator->SetInput(reader->GetOutput());
@@ -164,7 +164,7 @@ int otbKmzProductWriterWithLogoAndLegend(int argc, char* argv[])
   kmzWriter->AddLegend(legendReader->GetOutput());
 
   // Set the DEM Directory
-  otb::DEMHandler::Instance()->OpenDEMDirectory(argv[4]);
+  otb::DEMHandler::GetInstance().OpenDEMDirectory(argv[4]);
 
   // trigger the writing
   kmzWriter->Update();
-- 
GitLab