• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[/============================================================================
2  Boost.Geometry (aka GGL, Generic Geometry Library)
3
4  Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
5  Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
6  Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
7
8  Use, modification and distribution is subject to the Boost Software License,
9  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10  http://www.boost.org/LICENSE_1_0.txt)
11=============================================================================/]
12
13
14[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
15[/ Generated from doxy/doxygen_output/xml/group__simplify.xml]
16[section:simplify_4_with_strategy simplify (with strategy)]
17
18'''<indexterm><primary>simplify</primary></indexterm>'''
19Simplify a geometry using a specified strategy.
20
21[heading Synopsis]
22``template<typename Geometry, typename Distance, typename Strategy>
23void simplify(Geometry const & geometry, Geometry & out, Distance const & max_distance,
24              Strategy const & strategy)``
25
26[heading Parameters]
27
28[table
29[[Type] [Concept] [Name] [Description] ]
30[[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [input geometry, to be simplified ]]
31[[Geometry &] [Any type fulfilling a Geometry Concept ] [out] [output geometry, simplified version of the input geometry ]]
32[[Distance const &] [A numerical distance measure ] [max_distance] [distance (in units of input coordinates) of a vertex to other segments to be removed ]]
33[[Strategy const &] [A type fulfilling a SimplifyStrategy concept ] [strategy] [simplify strategy to be used for simplification, might include point-distance strategy]]
34]
35
36
37[heading Header]
38Either
39
40`#include <boost/geometry.hpp>`
41
42
43Or
44
45`#include <boost/geometry/algorithms/simplify.hpp>`
46
47
48[endsect]
49
50[section:simplify_3 simplify]
51
52'''<indexterm><primary>simplify</primary></indexterm>'''
53Simplify a geometry.
54
55[heading Synopsis]
56``template<typename Geometry, typename Distance>
57void simplify(Geometry const & geometry, Geometry & out, Distance const & max_distance)``
58
59[heading Parameters]
60
61[table
62[[Type] [Concept] [Name] [Description] ]
63[[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [input geometry, to be simplified ]]
64[[Geometry &] [Any type fulfilling a Geometry Concept ] [out] [output geometry, simplified version of the input geometry ]]
65[[Distance const &] [numerical type (int, double, ttmath, ...) ] [max_distance] [distance (in units of input coordinates) of a vertex to other segments to be removed]]
66]
67
68
69[heading Header]
70Either
71
72`#include <boost/geometry.hpp>`
73
74
75Or
76
77`#include <boost/geometry/algorithms/simplify.hpp>`
78
79[include reference/algorithms/simplify.qbk]
80
81
82[endsect]
83
84