Description
Currently, the intersection of the feature geometries with the pixels are based on the centroids. This is okay and best for Polygons but points are not loaded at all and for lines the centroid points need to be hit like here:

- Why is the feature needed?
Only polygons can be currently used.
There are three situations:
- Only Polygons
Use centroid intersection (all_touch = false)
- Only Lines and/or only Points
Use touch (all_touch = true)
- Polygons and (Lines or Points)
This is a bit difficult. The perfect solution would be to use centroid intersection for polygons, otherwise touch (e.g. splitting the collection and merging the raster results). However, we need this feature rather soon (for points), therefore the acceptable solution would be to use centroid intersection in this case as well.
Additional context
Description
Currently, the intersection of the feature geometries with the pixels are based on the centroids. This is okay and best for Polygons but points are not loaded at all and for lines the centroid points need to be hit like here:
Only polygons can be currently used.
The make_geocube function (
semantique/semantique/extent.py
Lines 184 to 189 in 2244625
There are three situations:
Use centroid intersection (all_touch = false)
Use touch (all_touch = true)
This is a bit difficult. The perfect solution would be to use centroid intersection for polygons, otherwise touch (e.g. splitting the collection and merging the raster results). However, we need this feature rather soon (for points), therefore the acceptable solution would be to use centroid intersection in this case as well.
Additional context