Commit 47754dc0 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: missing example for application PolygonClassStatistics

parent 5d5ba8e0
...@@ -102,7 +102,10 @@ private: ...@@ -102,7 +102,10 @@ private:
AddRAMParameter(); AddRAMParameter();
// Doc example parameter settings // Doc example parameter settings
// SetDocExampleParameterValue("in", "QB_1_ortho.tif"); SetDocExampleParameterValue("in", "support_image.tif");
SetDocExampleParameterValue("vec", "variousVectors.sqlite");
SetDocExampleParameterValue("field", "label")
SetDocExampleParameterValue("out","polygonStat.xml");
} }
void DoUpdateParameters() void DoUpdateParameters()
...@@ -134,11 +137,7 @@ private: ...@@ -134,11 +137,7 @@ private:
statWriter->SetFileName(this->GetParameterString("out")); statWriter->SetFileName(this->GetParameterString("out"));
statWriter->AddInputMap<FilterType::ClassCountMapType>("samplesPerClass",classCount); statWriter->AddInputMap<FilterType::ClassCountMapType>("samplesPerClass",classCount);
statWriter->AddInputMap<FilterType::PolygonSizeMapType>("samplesPerVector",polySize); statWriter->AddInputMap<FilterType::PolygonSizeMapType>("samplesPerVector",polySize);
statWriter->Update(); statWriter->Update();
// TODO : try to re-use the otb::StatisticsXMLFileWriter
// Need to adapt for map container
} }
}; };
......
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