]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | // Boost.Geometry |
2 | ||
3 | // Copyright (c) 2021, 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_IS_CONVEX_GEOGRAPHIC_HPP | |
11 | #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_GEOGRAPHIC_HPP | |
12 | ||
13 | ||
14 | #include <boost/geometry/strategies/convex_hull/geographic.hpp> | |
15 | #include <boost/geometry/strategies/detail.hpp> | |
16 | #include <boost/geometry/strategies/is_convex/services.hpp> | |
17 | ||
18 | ||
19 | namespace boost { namespace geometry | |
20 | { | |
21 | ||
22 | namespace strategies { namespace is_convex | |
23 | { | |
24 | ||
25 | ||
26 | template | |
27 | < | |
28 | typename FormulaPolicy = strategy::andoyer, | |
29 | typename Spheroid = srs::spheroid<double>, | |
30 | typename CalculationType = void | |
31 | > | |
32 | using geographic = strategies::convex_hull::geographic<FormulaPolicy, Spheroid, CalculationType>; | |
33 | ||
34 | ||
35 | namespace services | |
36 | { | |
37 | ||
38 | template <typename Geometry> | |
39 | struct default_strategy<Geometry, geographic_tag> | |
40 | { | |
41 | using type = strategies::convex_hull::geographic<>; | |
42 | }; | |
43 | ||
44 | template <typename FP, typename S, typename CT> | |
45 | struct strategy_converter<strategy::side::geographic<FP, S, CT>> | |
46 | { | |
47 | static auto get(strategy::side::geographic<FP, S, CT> const& s) | |
48 | { | |
49 | return strategies::is_convex::geographic<FP, S, CT>(s.model()); | |
50 | } | |
51 | }; | |
52 | ||
53 | } // namespace services | |
54 | ||
55 | }} // namespace strategies::is_convex | |
56 | ||
57 | }} // namespace boost::geometry | |
58 | ||
59 | #endif // BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_GEOGRAPHIC_HPP |