]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | // Boost.Geometry |
2 | ||
3 | // Copyright (c) 2021-2022, Oracle and/or its affiliates. | |
4 | ||
5 | // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle | |
6 | ||
7 | // Licensed under the Boost Software License version 1.0. | |
8 | // http://www.boost.org/users/license.html | |
9 | ||
10 | #ifndef BOOST_GEOMETRY_STRATEGIES_BUFFER_GEOGRAPHIC_HPP | |
11 | #define BOOST_GEOMETRY_STRATEGIES_BUFFER_GEOGRAPHIC_HPP | |
12 | ||
13 | ||
14 | #include <boost/geometry/strategies/buffer/services.hpp> | |
15 | #include <boost/geometry/strategies/distance/geographic.hpp> | |
16 | ||
17 | ||
18 | namespace boost { namespace geometry | |
19 | { | |
20 | ||
21 | namespace strategies { namespace buffer | |
22 | { | |
23 | ||
24 | ||
25 | template | |
26 | < | |
27 | typename FormulaPolicy = strategy::andoyer, | |
28 | typename Spheroid = srs::spheroid<double>, | |
29 | typename CalculationType = void | |
30 | > | |
31 | class geographic | |
32 | : public strategies::distance::geographic<FormulaPolicy, Spheroid, CalculationType> | |
33 | { | |
34 | using base_t = strategies::distance::geographic<FormulaPolicy, Spheroid, CalculationType>; | |
35 | ||
36 | public: | |
37 | geographic() = default; | |
38 | ||
39 | explicit geographic(Spheroid const& spheroid) | |
40 | : base_t(spheroid) | |
41 | {} | |
42 | }; | |
43 | ||
44 | ||
45 | namespace services | |
46 | { | |
47 | ||
48 | template <typename Geometry> | |
49 | struct default_strategy<Geometry, geographic_tag> | |
50 | { | |
51 | using type = strategies::buffer::geographic<>; | |
52 | }; | |
53 | ||
54 | ||
55 | } // namespace services | |
56 | ||
57 | }} // namespace strategies::buffer | |
58 | ||
59 | }} // namespace boost::geometry | |
60 | ||
61 | #endif // BOOST_GEOMETRY_STRATEGIES_BUFFER_GEOGRAPHIC_HPP |