simplify

# simplify: remove points from a geometry, keeping shape (simplification or generalization)

boost::geometry::concept::SimplifyStrategy
typename Geometry
typename Distance
typename Strategy
void void boost::geometry::simplify (Geometry const &geometry, Geometry &out, Distance const &max_distance, Strategy const &strategy) simplify Geometry const & geometry Geometry & out Distance const & max_distance Strategy const & strategy

Simplify a geometry using a specified strategy.

Geometry

Any type fulfilling a Geometry Concept

Distance

A numerical distance measure

Strategy

A type fulfilling a SimplifyStrategy concept

strategy

A strategy to calculate simplification

geometry

input geometry, to be simplified

out

output geometry, simplified version of the input geometry

max_distance

distance (in units of input coordinates) of a vertex to other segments to be removed

strategy

simplify strategy to be used for simplification, might include point-distance strategy

The image below presents the simplified country with strategy
typename Geometry
typename Distance
void void boost::geometry::simplify (Geometry const &geometry, Geometry &out, Distance const &max_distance) simplify Geometry const & geometry Geometry & out Distance const & max_distance

Simplify a geometry.

Geometry

Any type fulfilling a Geometry Concept

Distance

numerical type (int, double, ttmath, ...)

This version of simplify simplifies a geometry using the default strategy (Douglas Peucker),

geometry

input geometry, to be simplified

out

output geometry, simplified version of the input geometry

max_distance

distance (in units of input coordinates) of a vertex to other segments to be removed

[include reference/algorithms/simplify.qbk]