3 // Copyright (c) 2021, Oracle and/or its affiliates.
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
7 // Licensed under the Boost Software License version 1.0.
8 // http://www.boost.org/users/license.html
10 #ifndef BOOST_GEOMETRY_STRATEGIES_DENSIFY_GEOGRAPHIC_HPP
11 #define BOOST_GEOMETRY_STRATEGIES_DENSIFY_GEOGRAPHIC_HPP
14 #include <boost/geometry/strategies/detail.hpp>
15 #include <boost/geometry/strategies/densify/services.hpp>
17 #include <boost/geometry/strategies/geographic/densify.hpp>
20 namespace boost { namespace geometry
23 namespace strategies { namespace densify
28 typename FormulaPolicy = strategy::andoyer,
29 typename Spheroid = srs::spheroid<double>,
30 typename CalculationType = void
33 : public strategies::detail::geographic_base<Spheroid>
35 using base_t = strategies::detail::geographic_base<Spheroid>;
38 geographic() = default;
40 explicit geographic(Spheroid const& spheroid)
44 template <typename Geometry>
45 auto densify(Geometry const&) const
47 return strategy::densify::geographic
49 FormulaPolicy, Spheroid, CalculationType
50 >(base_t::m_spheroid);
58 template <typename Geometry>
59 struct default_strategy<Geometry, geographic_tag>
61 using type = strategies::densify::geographic<>;
65 template <typename FP, typename S, typename CT>
66 struct strategy_converter<strategy::densify::geographic<FP, S, CT> >
68 static auto get(strategy::densify::geographic<FP, S, CT> const& s)
70 return strategies::densify::geographic<FP, S, CT>(s.model());
75 } // namespace services
77 }} // namespace strategies::densify
79 }} // namespace boost::geometry
81 #endif // BOOST_GEOMETRY_STRATEGIES_DENSIFY_GEOGRAPHIC_HPP