Improve rasterization
In 7.0 VectorData
might be replaced with ogr::DataSource
and also in application parameter input/output (#1716 (closed)).
Some filters for VectorData
and ogr::DataSource
have some overlap...
VectorDataToLabelImageFilter
:OGRDataSourceToLabelImageFilter
LabelImageToVectorDataFilter
:LabelImageToOGRDataSourceFilter
VectorDataIntoImageProjectionFilter
:GeometriesProjectionFilter
(from !222 (merged))
...but some features were added to VectorDataToLabelImageFilter
and not propagated to OGRDataSourceToLabelImageFilter
I propose to discuss a possible improvement for OGRDataSourceToLabelImageFilter
(or VectorDataToLabelImageFilter
is VectorData
would be kept, but I don't feel so)
In my opinion, the following burning mode could be useful:
- Binary (Burn the same value for each geometry. Params: Foreground value (ImagePixelValueType))
- Field (Burn the value of the given field. Param: Field name (string))
- FID (Burn the value corresponding to the (cast of the) geometry ID into ImagePixelValueType. (Param: Starting value (size_t) default could be background value))
- Container (Burn the N-th value of the given container for the N-th geometry. Param: TContainer (e.g. std::unordered_map...))
For Mosaic
and ZonalStatistics
this would be useful, and I think we could improve also some other stuff with that.
What do you think?
Edited by Rémi Cresson