...one of the most highly
regarded and expertly designed C++ library projects in the
world.

— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards

Simplify a geometry using a specified strategy.

template<typename Geometry, typename Distance, typename Strategy> void simplify(Strategy const & strategy, Geometry const & geometry, Geometry & out, Distance const & max_distance)

Type |
Concept |
Name |
Description |
---|---|---|---|

Strategy const & |
A type fulfilling a SimplifyStrategy concept |
strategy |
simplify strategy to be used for simplification, might include point-distance strategy |

Geometry const & |
Any type fulfilling a Geometry Concept |
geometry |
input geometry, to be simplified |

Geometry & |
Any type fulfilling a Geometry Concept |
out |
output geometry, simplified version of the input geometry |

Distance const & |
A numerical distance measure |
max_distance |
distance (in units of input coordinates) of a vertex to other segments to be removed |

Either

`#include <boost/geometry/geometry.hpp>`

Or

`#include <boost/geometry/algorithms/simplify.hpp>`