Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:36:47

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2020-2021, Oracle and/or its affiliates.
0004 
0005 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0006 
0007 // Licensed under the Boost Software License version 1.0.
0008 // http://www.boost.org/users/license.html
0009 
0010 #ifndef BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
0011 #define BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP
0012 
0013 
0014 #include <boost/geometry/strategies/distance/geographic.hpp>
0015 #include <boost/geometry/strategies/index/services.hpp>
0016 
0017 
0018 namespace boost { namespace geometry { namespace strategies { namespace index
0019 {
0020 
0021 template
0022 <
0023     typename FormulaPolicy = strategy::andoyer,
0024     typename Spheroid = srs::spheroid<double>,
0025     typename CalculationType = void
0026 >
0027 class geographic
0028     : public distance::geographic<FormulaPolicy, Spheroid, CalculationType>
0029 {
0030     typedef distance::geographic<FormulaPolicy, Spheroid, CalculationType> base_t;
0031 
0032 public:
0033     geographic() = default;
0034 
0035     explicit geographic(Spheroid const& spheroid)
0036         : base_t(spheroid)
0037     {}
0038 };
0039 
0040 
0041 namespace services
0042 {
0043 
0044 template <typename Geometry>
0045 struct default_strategy<Geometry, geographic_tag>
0046 {
0047     using type = strategies::index::geographic<>;
0048 };
0049 
0050 
0051 } // namespace services
0052 
0053 
0054 }}}} // namespace boost::geometry::strategy::index
0055 
0056 #endif // BOOST_GEOMETRY_STRATEGIES_INDEX_GEOGRAPHIC_HPP