File indexing completed on 2025-09-18 08:44:46
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
0013 #define BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
0014
0015
0016 #include <boost/geometry/strategies/centroid/geographic.hpp>
0017 #include <boost/geometry/strategies/distance/geographic.hpp>
0018 #include <boost/geometry/strategies/index/services.hpp>
0019
0020
0021 namespace boost { namespace geometry { namespace strategies { namespace index
0022 {
0023
0024 template
0025 <
0026 typename FormulaPolicy = strategy::andoyer,
0027 typename Spheroid = srs::spheroid<double>,
0028 typename CalculationType = void
0029 >
0030 class geographic
0031 : public distance::geographic<FormulaPolicy, Spheroid, CalculationType>
0032 , public strategies::centroid::detail::geographic
0033 {
0034 typedef distance::geographic<FormulaPolicy, Spheroid, CalculationType> base_t;
0035
0036 public:
0037 geographic() = default;
0038
0039 explicit geographic(Spheroid const& spheroid)
0040 : base_t(spheroid)
0041 {}
0042 };
0043
0044
0045 namespace services
0046 {
0047
0048 template <typename Geometry>
0049 struct default_strategy<Geometry, geographic_tag>
0050 {
0051 using type = strategies::index::geographic<>;
0052 };
0053
0054
0055 }
0056
0057
0058 }}}}
0059
0060 #endif