Skip to content
Snippets Groups Projects
Commit 17477c07 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: missing elevation parameter in PolygonClassStatistics and SampleSelection

parent 87a0e2dd
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
#include "otbStatisticsXMLFileWriter.h"
#include "otbGeometriesProjectionFilter.h"
#include "otbGeometriesSet.h"
#include "otbWrapperElevationParametersHandler.h"
namespace otb
{
......@@ -104,7 +105,9 @@ private:
SetParameterDescription("layer", "Layer index to read in the input vector file.");
MandatoryOff("layer");
SetDefaultParameterInt("layer",0);
ElevationParametersHandler::AddElevationParameters(this, "elev");
AddRAMParameter();
// Doc example parameter settings
......@@ -125,6 +128,8 @@ private:
otb::ogr::DataSource::New(this->GetParameterString("vec"));
std::string fieldName = this->GetParameterString("field");
otb::Wrapper::ElevationParametersHandler::SetupDEMHandlerFromElevationParameters(this,"elev");
// Reproject geometries
FloatVectorImageType::Pointer inputImg = this->GetParameterImage("in");
std::string imageProjectionRef = inputImg->GetProjectionRef();
......
......@@ -23,6 +23,7 @@
#include "otbRandomSampler.h"
#include "otbGeometriesProjectionFilter.h"
#include "otbGeometriesSet.h"
#include "otbWrapperElevationParametersHandler.h"
namespace otb
{
......@@ -204,6 +205,8 @@ private:
MandatoryOff("layer");
SetDefaultParameterInt("layer",0);
ElevationParametersHandler::AddElevationParameters(this, "elev");
AddRAMParameter();
AddRANDParameter();
......@@ -227,6 +230,8 @@ private:
m_Periodic->GetFilter()->ClearOutputs();
m_Random->GetFilter()->ClearOutputs();
otb::Wrapper::ElevationParametersHandler::SetupDEMHandlerFromElevationParameters(this,"elev");
// Setup ram
m_Periodic->GetStreamer()->SetAutomaticAdaptativeStreaming(GetParameterInt("ram"));
m_Random->GetStreamer()->SetAutomaticAdaptativeStreaming(GetParameterInt("ram"));
......
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