Skip to main content

SimplifyStrategy

Trait SimplifyStrategy 

Source
pub trait SimplifyStrategy<G> {
    type Output;

    // Required method
    fn simplify(&self, g: &G, max_distance: f64) -> Self::Output;
}
Expand description

A strategy for simplifying a geometry.

Mirrors the per-coordinate-system simplify-strategy concept from boost/geometry/strategies/simplify.hpp. simplify returns a new geometry of the same kind.

Required Associated Types§

Source

type Output

The simplified geometry type.

Required Methods§

Source

fn simplify(&self, g: &G, max_distance: f64) -> Self::Output

Return a simplified copy of g, dropping vertices whose deviation from the retained chord is below max_distance.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§