Trait h3ron::to_h3::ToIntersectingH3Cells
source · pub trait ToIntersectingH3Cells {
fn to_intersecting_h3_cells(
&self,
h3_resolution: u8
) -> Result<Vec<H3Cell>, Error>;
}
Expand description
Convert the geometry to cells at the given resolution
In contrary to ToH3Cells
this not only contains the cells whose
centroid is located within the self
(in case of polygons), but also the cells which only
intersect with self
.
The output vec may contain duplicate indexes in case of overlapping input geometries.