]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/strategies/index/geographic.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / geometry / strategies / index / geographic.hpp
1 // Boost.Geometry
2
3 // Copyright (c) 2020-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_INDEX_GEOGRAPHIC_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
12
13
14 #include <boost/geometry/strategies/distance/geographic.hpp>
15 #include <boost/geometry/strategies/index/services.hpp>
16
17
18 namespace boost { namespace geometry { namespace strategies { namespace index
19 {
20
21 template
22 <
23 typename FormulaPolicy = strategy::andoyer,
24 typename Spheroid = srs::spheroid<double>,
25 typename CalculationType = void
26 >
27 class geographic
28 : public distance::geographic<FormulaPolicy, Spheroid, CalculationType>
29 {
30 typedef distance::geographic<FormulaPolicy, Spheroid, CalculationType> base_t;
31
32 public:
33 geographic() = default;
34
35 explicit geographic(Spheroid const& spheroid)
36 : base_t(spheroid)
37 {}
38 };
39
40
41 namespace services
42 {
43
44 template <typename Geometry>
45 struct default_strategy<Geometry, geographic_tag>
46 {
47 using type = strategies::index::geographic<>;
48 };
49
50
51 } // namespace services
52
53
54 }}}} // namespace boost::geometry::strategy::index
55
56 #endif // BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP