Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Boost.Geometry
0002 
0003 // Copyright (c) 2017-2018, Oracle and/or its affiliates.
0004 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
0005 
0006 // Use, modification and distribution is subject to the Boost Software License,
0007 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0008 // http://www.boost.org/LICENSE_1_0.txt)
0009 
0010 #ifndef BOOST_GEOMETRY_SRS_IAU2000_HPP
0011 #define BOOST_GEOMETRY_SRS_IAU2000_HPP
0012 
0013 
0014 #include <boost/geometry/srs/projection.hpp>
0015 #include <boost/geometry/srs/projections/iau2000.hpp>
0016 #include <boost/geometry/srs/projections/iau2000_params.hpp>
0017 #include <boost/geometry/srs/projections/iau2000_traits.hpp>
0018 
0019 
0020 namespace boost { namespace geometry
0021 {
0022 
0023 namespace projections
0024 {
0025 
0026 template <>
0027 struct dynamic_parameters<srs::iau2000>
0028 {
0029     static const bool is_specialized = true;
0030     static inline srs::dpar::parameters<> apply(srs::iau2000 const& params)
0031     {
0032         return projections::detail::iau2000_to_parameters(params.code);
0033     }
0034 };
0035 
0036 template <int Code, typename CT>
0037 class proj_wrapper<srs::static_iau2000<Code>, CT>
0038     : public proj_wrapper
0039         <
0040             typename projections::detail::iau2000_traits<Code>::parameters_type,
0041             CT
0042         >
0043 {
0044     typedef projections::detail::iau2000_traits<Code> iau2000_traits;
0045 
0046     typedef proj_wrapper
0047         <
0048             typename iau2000_traits::parameters_type,
0049             CT
0050         > base_t;
0051 
0052 public:
0053     proj_wrapper()
0054         : base_t(iau2000_traits::parameters())
0055     {}
0056 
0057     explicit proj_wrapper(srs::static_iau2000<Code> const&)
0058         : base_t(iau2000_traits::parameters())
0059     {}
0060 };
0061 
0062 
0063 } // namespace projections
0064 
0065 }} // namespace boost::geometry
0066 
0067 
0068 #endif // BOOST_GEOMETRY_SRS_IAU2000_HPP