Expand description
simplify(g, max_distance) — return a Douglas–Peucker-simplified
copy of g.
Mirrors boost::geometry::simplify(g, max_distance) from
boost/geometry/algorithms/simplify.hpp. The Cartesian default is
geometry_strategy::DouglasPeucker<geometry_strategy::PointToSegment<geometry_strategy::Pythagoras>>,
matching Boost’s default from
boost/geometry/strategies/agnostic/simplify_douglas_peucker.hpp.
v1 ships linestring simplify only. Ring / polygon simplify (which must preserve ring closure) lands with the areal-simplify task.
Functions§
- simplify
- Return a Douglas–Peucker-simplified copy of the linestring
g. - simplify_
with - Return a simplified copy of
gusing an explicit strategy.