diff options
Diffstat (limited to 'boost/geometry/srs/projections/impl/pj_ell_set.hpp')
-rw-r--r-- | boost/geometry/srs/projections/impl/pj_ell_set.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/geometry/srs/projections/impl/pj_ell_set.hpp b/boost/geometry/srs/projections/impl/pj_ell_set.hpp index 18b4aa1164..128c70e689 100644 --- a/boost/geometry/srs/projections/impl/pj_ell_set.hpp +++ b/boost/geometry/srs/projections/impl/pj_ell_set.hpp @@ -129,7 +129,7 @@ inline bool pj_ell_init_ellps(srs::dpar::parameters<T> const& params, T &a, T &b const pj_ellps_type<T>* pj_ellps = pj_get_ellps<T>().first; const int n = pj_get_ellps<T>().second; int i = it->template get_value<int>(); - + if (i < 0 || i >= n) { BOOST_THROW_EXCEPTION( projection_exception(error_unknown_ellp_param) ); } @@ -244,7 +244,7 @@ inline void pj_ell_init(Params const& params, T &a, T &es) } else if (pj_param_f<srs::spar::rf>(params, "rf", srs::dpar::rf, es)) { /* recip flattening */ if (es == 0.0) { BOOST_THROW_EXCEPTION( projection_exception(error_rev_flattening_is_zero) ); - } + } es = 1./ es; es = es * (2. - es); is_ell_set = true; |