Commit 4283473c authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: update tests and applications

parent b6eab4d3
...@@ -126,7 +126,7 @@ private: ...@@ -126,7 +126,7 @@ private:
filter->SetInput(this->GetParameterImage("in")); filter->SetInput(this->GetParameterImage("in"));
filter->SetLayerIndex(this->GetParameterInt("layer")); filter->SetLayerIndex(this->GetParameterInt("layer"));
filter->SetSamplePositions(vectors); filter->SetSamplePositions(vectors);
filter->SetOutputOGRData(output); filter->SetOutputSamples(output);
filter->SetClassFieldName(this->GetParameterString("field")); filter->SetClassFieldName(this->GetParameterString("field"));
filter->SetOutputFieldPrefix(this->GetParameterString("pre")); filter->SetOutputFieldPrefix(this->GetParameterString("pre"));
......
...@@ -74,7 +74,7 @@ int otbImageSampleExtractorFilter(int argc, char* argv[]) ...@@ -74,7 +74,7 @@ int otbImageSampleExtractorFilter(int argc, char* argv[])
filter->SetInput(imgSource->GetOutput()); filter->SetInput(imgSource->GetOutput());
filter->SetLayerIndex(2); filter->SetLayerIndex(2);
filter->SetSamplePositions(vectors); filter->SetSamplePositions(vectors);
filter->SetOutputOGRData(output); filter->SetOutputSamples(output);
filter->SetClassFieldName(classFieldName); filter->SetClassFieldName(classFieldName);
filter->SetOutputFieldPrefix(outputPrefix); filter->SetOutputFieldPrefix(outputPrefix);
...@@ -153,7 +153,7 @@ int otbImageSampleExtractorFilterUpdate(int argc, char* argv[]) ...@@ -153,7 +153,7 @@ int otbImageSampleExtractorFilterUpdate(int argc, char* argv[])
filter->SetInput(imgSource->GetOutput()); filter->SetInput(imgSource->GetOutput());
filter->SetLayerIndex(0); filter->SetLayerIndex(0);
filter->SetSamplePositions(outputUpdate); filter->SetSamplePositions(outputUpdate);
filter->SetOutputOGRData(outputUpdate); filter->SetOutputSamples(outputUpdate);
filter->SetClassFieldName(classFieldName); filter->SetClassFieldName(classFieldName);
filter->SetOutputFieldPrefix(outputPrefix); filter->SetOutputFieldPrefix(outputPrefix);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment