Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / geometry / strategies / spherical / envelope_box.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
5 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
6
7 // This file was modified by Oracle on 2015-2019.
8 // Modifications copyright (c) 2015-2019, Oracle and/or its affiliates.
9
10 // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
11 // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
12 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
13
14 // Distributed under the Boost Software License, Version 1.0.
15 // (See accompanying file LICENSE_1_0.txt or copy at
16 // http://www.boost.org/LICENSE_1_0.txt)
17
18 #ifndef BOOST_GEOMETRY_STRATEGIES_SPHERICAL_ENVELOPE_BOX_HPP
19 #define BOOST_GEOMETRY_STRATEGIES_SPHERICAL_ENVELOPE_BOX_HPP
20
21
22 #include <boost/geometry/strategies/spherical/expand_box.hpp>
23
24 #include <boost/geometry/strategies/envelope.hpp>
25
26
27 namespace boost { namespace geometry
28 {
29
30 namespace strategy { namespace envelope
31 {
32
33
34 struct spherical_box
35     : geometry::detail::envelope::envelope_box_on_spheroid
36 {
37     typedef spherical_tag cs_tag;
38
39     typedef strategy::expand::spherical_box box_expand_strategy_type;
40
41     static inline box_expand_strategy_type get_box_expand_strategy()
42     {
43         return box_expand_strategy_type();
44     }
45 };
46
47
48 #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
49
50 namespace services
51 {
52
53 template <typename CalculationType>
54 struct default_strategy<box_tag, spherical_equatorial_tag, CalculationType>
55 {
56     typedef strategy::envelope::spherical_box type;
57 };
58
59 template <typename CalculationType>
60 struct default_strategy<box_tag, spherical_polar_tag, CalculationType>
61 {
62     typedef strategy::envelope::spherical_box type;
63 };
64
65 template <typename CalculationType>
66 struct default_strategy<box_tag, geographic_tag, CalculationType>
67 {
68     typedef strategy::envelope::spherical_box type;
69 };
70
71 }
72
73 #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS
74
75
76 }} // namespace strategy::envelope
77
78
79 }} // namespace boost::geometry
80
81
82 #endif // BOOST_GEOMETRY_STRATEGIES_SPHERICAL_ENVELOPE_BOX_HPP