123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- // Boost.Geometry
- // Copyright (c) 2020-2021, Oracle and/or its affiliates.
- // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
- // Licensed under the Boost Software License version 1.0.
- // http://www.boost.org/users/license.html
- #ifndef BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_HPP
- #define BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_HPP
- #include <boost/geometry/strategies/area/geographic.hpp>
- #include <boost/geometry/strategies/azimuth/geographic.hpp>
- #include <boost/geometry/strategies/convex_hull/geographic.hpp>
- #include <boost/geometry/strategies/envelope/geographic.hpp>
- #include <boost/geometry/strategies/expand/geographic.hpp>
- #include <boost/geometry/strategies/io/geographic.hpp>
- #include <boost/geometry/strategies/index/geographic.hpp>
- #include <boost/geometry/strategies/relate/geographic.hpp>
- namespace boost { namespace geometry
- {
-
- namespace strategies
- {
- template
- <
- typename FormulaPolicy = strategy::andoyer,
- std::size_t SeriesOrder = strategy::default_order<FormulaPolicy>::value,
- typename Spheroid = srs::spheroid<double>,
- typename CalculationType = void
- >
- class geographic
- // derived from the umbrella strategy defining the most strategies
- : public index::geographic<FormulaPolicy, SeriesOrder, Spheroid, CalculationType>
- {
- using base_t = index::geographic<FormulaPolicy, SeriesOrder, Spheroid, CalculationType>;
- public:
- geographic()
- : base_t()
- {}
- explicit geographic(Spheroid const& spheroid)
- : base_t(spheroid)
- {}
- auto azimuth() const
- {
- return strategy::azimuth::geographic
- <
- FormulaPolicy, Spheroid, CalculationType
- >(base_t::m_spheroid);
- }
- auto point_order() const
- {
- return strategy::point_order::geographic
- <
- FormulaPolicy, Spheroid, CalculationType
- >(base_t::m_spheroid);
- }
- };
- } // namespace strategies
- }} // namespace boost::geometry
- #endif // BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_HPP
|