File indexing completed on 2025-01-18 09:36:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_GEOMETRY_SRS_ESRI_HPP
0011 #define BOOST_GEOMETRY_SRS_ESRI_HPP
0012
0013
0014 #include <boost/geometry/srs/projection.hpp>
0015 #include <boost/geometry/srs/projections/esri.hpp>
0016 #include <boost/geometry/srs/projections/esri_params.hpp>
0017 #include <boost/geometry/srs/projections/esri_traits.hpp>
0018
0019
0020 namespace boost { namespace geometry
0021 {
0022
0023 namespace projections
0024 {
0025
0026 template <>
0027 struct dynamic_parameters<srs::esri>
0028 {
0029 static const bool is_specialized = true;
0030 static inline srs::dpar::parameters<> apply(srs::esri const& params)
0031 {
0032 return projections::detail::esri_to_parameters(params.code);
0033 }
0034 };
0035
0036
0037 template <int Code, typename CT>
0038 class proj_wrapper<srs::static_esri<Code>, CT>
0039 : public proj_wrapper
0040 <
0041 typename projections::detail::esri_traits<Code>::parameters_type,
0042 CT
0043 >
0044 {
0045 typedef projections::detail::esri_traits<Code> esri_traits;
0046
0047 typedef proj_wrapper
0048 <
0049 typename esri_traits::parameters_type,
0050 CT
0051 > base_t;
0052
0053 public:
0054 proj_wrapper()
0055 : base_t(esri_traits::parameters())
0056 {}
0057
0058 explicit proj_wrapper(srs::static_esri<Code> const&)
0059 : base_t(esri_traits::parameters())
0060 {}
0061 };
0062
0063
0064 }
0065
0066
0067 }}
0068
0069
0070 #endif