]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/geometry/srs/esri.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / geometry / srs / esri.hpp
1 // Boost.Geometry
2
3 // Copyright (c) 2017, Oracle and/or its affiliates.
4 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
5
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)
9
10 #ifndef BOOST_GEOMETRY_SRS_ESRI_HPP
11 #define BOOST_GEOMETRY_SRS_ESRI_HPP
12
13
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>
18
19
20 namespace boost { namespace geometry
21 {
22
23 namespace projections
24 {
25
26 template <typename CT>
27 struct dynamic_parameters<srs::esri, CT>
28 {
29 static inline projections::parameters<CT> apply(srs::esri const& params)
30 {
31 return projections::detail::pj_init_plus<CT>(
32 srs::dynamic(),
33 projections::detail::esri_to_string(params.code),
34 false);
35 }
36 };
37
38 template <int Code, typename CT>
39 class proj_wrapper<srs::static_esri<Code>, CT>
40 : public static_proj_wrapper_base
41 <
42 typename projections::detail::esri_traits<Code>::static_parameters_type,
43 CT
44 >
45 {
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;
49
50 public:
51 proj_wrapper()
52 : base_t(esri_traits::s_par(), esri_traits::par())
53 {}
54 };
55
56
57 } // namespace projections
58
59
60 namespace srs
61 {
62
63
64 template <int Code, typename CT>
65 class projection<srs::static_esri<Code>, CT>
66 : public projections::projection<srs::static_esri<Code>, CT>
67 {
68 typedef projections::projection<srs::static_esri<Code>, CT> base_t;
69
70 public:
71 projection()
72 {}
73 };
74
75
76 } // namespace srs
77
78
79 }} // namespace boost::geometry
80
81
82 #endif // BOOST_GEOMETRY_SRS_ESRI_HPP