Skip to content
Snippets Groups Projects

Resolve "Migrate code to OTB 8.x"

Merged Luc Hermitte requested to merge 5-migrate-code-to-otb-8-x into master
12 files
+ 149
116
Compare changes
  • Side-by-side
  • Inline
Files
12
+ 3
3
/*
* Copyright (C) 2005-2021 Centre National d'Etudes Spatiales (CNES)
* Copyright (C) 2005-2023 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
@@ -100,7 +100,7 @@ private:
void DoUpdateParameters() override
{
// Clear and reset the DEM Handler
#if defined(DRAFT_OTB8) || OTB_VERSION_MAJOR >= 8
#if OTB_VERSION_MAJOR >= 8
// TODO: private function... can't be cleared
otb::DEMHandler::GetInstance().ClearElevationParameters();
// otb::DEMHandler::GetInstance().ClearDEMs();
@@ -116,7 +116,7 @@ private:
auto* inputImage = GetParameterImage("ref");
auto generator = XYZToImageGeneratorType::New();
// #if defined(DRAFT_OTB8) || OTB_VERSION_MAJOR >= 8
// #if OTB_VERSION_MAJOR >= 8
// #else
generator->SetOutputParametersFromImage(inputImage);
// #endif
Loading