File indexing completed on 2025-01-18 09:36:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_GEOGRAPHIC_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_IS_CONVEX_GEOGRAPHIC_HPP
0012
0013
0014 #include <boost/geometry/strategies/convex_hull/geographic.hpp>
0015 #include <boost/geometry/strategies/detail.hpp>
0016 #include <boost/geometry/strategies/is_convex/services.hpp>
0017
0018
0019 namespace boost { namespace geometry
0020 {
0021
0022 namespace strategies { namespace is_convex
0023 {
0024
0025
0026 template
0027 <
0028 typename FormulaPolicy = strategy::andoyer,
0029 typename Spheroid = srs::spheroid<double>,
0030 typename CalculationType = void
0031 >
0032 using geographic = strategies::convex_hull::geographic<FormulaPolicy, Spheroid, CalculationType>;
0033
0034
0035 namespace services
0036 {
0037
0038 template <typename Geometry>
0039 struct default_strategy<Geometry, geographic_tag>
0040 {
0041 using type = strategies::convex_hull::geographic<>;
0042 };
0043
0044 template <typename FP, typename S, typename CT>
0045 struct strategy_converter<strategy::side::geographic<FP, S, CT>>
0046 {
0047 static auto get(strategy::side::geographic<FP, S, CT> const& s)
0048 {
0049 return strategies::is_convex::geographic<FP, S, CT>(s.model());
0050 }
0051 };
0052
0053 }
0054
0055 }}
0056
0057 }}
0058
0059 #endif