Skip to main content

simplify_geometry

Function simplify_geometry 

Source
pub fn simplify_geometry(geom: &Geometry, tolerance: f64) -> Geometry
Expand description

Apply Douglas-Peucker to every linear part of a Geometry. Polygon rings are kept closed (the closing duplicate is restored if simplification dropped it). Point / MultiPoint / Empty pass through unchanged.