Export LabelMap<AttributesMapLabelObject> to VectorData with proper fields
Mantis Issue 397, reported by jmalik, assigned to jmichel, created: 2011-08-08
There seem to be no easy way to do that.
LabelMapToVectorDataFilter is templated over a functor type.
Default implementation returns nothing, and a specific implementation for AttributesMapLabelObjectWithClassLabel returns the class attribute and build a "Class" OGR field.
We probably miss another functor which extracts all the attributes computed on LabelObject and create a field for each of them.
There are probably issues with field names which needs to be OGR compliant, while in LabelObject we name them STATS::Band1::Mean, etc...