3 // Copyright (c) 2017, 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_ESRI_HPP
11 #define BOOST_GEOMETRY_SRS_ESRI_HPP
14 #include <boost/geometry/srs/projection.hpp>
15 #include <boost/geometry/srs/projections/esri.hpp>
16 #include <boost/geometry/srs/projections/esri_params.hpp>
17 #include <boost/geometry/srs/projections/esri_traits.hpp>
20 namespace boost { namespace geometry
26 template <typename CT>
27 struct dynamic_parameters<srs::esri, CT>
29 static inline projections::parameters<CT> apply(srs::esri const& params)
31 return projections::detail::pj_init_plus<CT>(
33 projections::detail::esri_to_string(params.code),
38 template <int Code, typename CT>
39 class proj_wrapper<srs::static_esri<Code>, CT>
40 : public static_proj_wrapper_base
42 typename projections::detail::esri_traits<Code>::static_parameters_type,
46 typedef projections::detail::esri_traits<Code> esri_traits;
47 typedef typename esri_traits::static_parameters_type static_parameters_type;
48 typedef static_proj_wrapper_base<static_parameters_type, CT> base_t;
52 : base_t(esri_traits::s_par(), esri_traits::par())
57 } // namespace projections
64 template <int Code, typename CT>
65 class projection<srs::static_esri<Code>, CT>
66 : public projections::projection<srs::static_esri<Code>, CT>
68 typedef projections::projection<srs::static_esri<Code>, CT> base_t;
79 }} // namespace boost::geometry
82 #endif // BOOST_GEOMETRY_SRS_ESRI_HPP