Trait h3ron::to_geo::ToAlignedLinkedPolygons
source · [−]pub trait ToAlignedLinkedPolygons {
type Error;
fn to_aligned_linked_polygons(
&self,
align_to_h3_resolution: u8,
smoothen: bool
) -> Result<Vec<Polygon<f64>>, Self::Error>;
}
Expand description
join hexagon polygons to larger polygons where hexagons are touching each other
The cells will be grouped by the align_to_h3_resolution
, so this will generate polygons
not exceeding the area of that parent resolution.
Corners will be aligned to the corners of the parent resolution when they are less than an
edge length away from them. This is to avoid gaps when smoothen
is set to true.
This algorithm still needs some optimization to improve the runtime.