3 // Copyright (c) 2017-2018, Oracle and/or its affiliates.
4 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
6 // Use, modification and distribution is subject to the Boost Software License,
7 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
10 #ifndef BOOST_GEOMETRY_SRS_IAU2000_HPP
11 #define BOOST_GEOMETRY_SRS_IAU2000_HPP
14 #include <boost/geometry/srs/projection.hpp>
15 #include <boost/geometry/srs/projections/iau2000.hpp>
16 #include <boost/geometry/srs/projections/iau2000_params.hpp>
17 #include <boost/geometry/srs/projections/iau2000_traits.hpp>
20 namespace boost { namespace geometry
27 struct dynamic_parameters<srs::iau2000>
29 static const bool is_specialized = true;
30 static inline srs::dpar::parameters<> apply(srs::iau2000 const& params)
32 return projections::detail::iau2000_to_parameters(params.code);
36 template <int Code, typename CT>
37 class proj_wrapper<srs::static_iau2000<Code>, CT>
40 typename projections::detail::iau2000_traits<Code>::parameters_type,
44 typedef projections::detail::iau2000_traits<Code> iau2000_traits;
48 typename iau2000_traits::parameters_type,
54 : base_t(iau2000_traits::parameters())
57 explicit proj_wrapper(srs::static_iau2000<Code> const&)
58 : base_t(iau2000_traits::parameters())
63 } // namespace projections
65 }} // namespace boost::geometry
68 #endif // BOOST_GEOMETRY_SRS_IAU2000_HPP