Trait CoveredArea

Source
pub trait CoveredArea {
    type Error;

    // Required method
    fn covered_area(
        &self,
        reduce_resolution_by: u8,
    ) -> Result<MultiPolygon<f64>, Self::Error>;
}
Expand description

calculates a MultiPolygon of the area covered by a graph

Required Associated Types§

Required Methods§

Source

fn covered_area( &self, reduce_resolution_by: u8, ) -> Result<MultiPolygon<f64>, Self::Error>

calculates a MultiPolygon of the area covered by a graph

As the resulting geometry will be quite complex, it is recommended to reduce the h3 resolution using reduce_resolution_by. A value of 3 will make the calculation based on resolution 7 for a graph of resolution 10. Reducing the resolution leads to a overestimation of the area.

A slight simplification will be applied to the output geometry and eventual holes will be removed.

Implementors§