20 constexpr
double a = 6378137;
27 constexpr
double a = 6378137;
30 return a * log(tan(rad_div_two_deg * y + pi_div_four));
34 constexpr
double a = 6378137;
40 constexpr
double a = 6378137;
41 constexpr
double a_inv = 1 /
a;
43 return two_deg_div_rad * atan(exp(a_inv * y)) - 90;
ALWAYS_INLINE double transform_900913_4326_y(double, const double y)
ALWAYS_INLINE double transform_900913_utm_x(unsigned const utm_srid, double const x, double const y)
ALWAYS_INLINE double transform_4326_900913_y(double, const double y)
ALWAYS_INLINE double transform_4326_utm_x(unsigned const utm_srid, double const x, double const y)
constexpr double deg_div_rad
ALWAYS_INLINE double transform_utm_4326_x(unsigned const utm_srid, double const x, double const y)
constexpr double rad_div_deg
ALWAYS_INLINE double transform_900913_utm_y(unsigned const utm_srid, double const x, double const y)
ALWAYS_INLINE double transform_4326_utm_y(unsigned const utm_srid, double const x, double const y)
ALWAYS_INLINE double transform_900913_4326_x(const double x, double)
ALWAYS_INLINE double transform_4326_900913_x(const double x, double)
Convert to/from WGS84 (long,lat) and UTM (x,y) given utm zone srid.
ALWAYS_INLINE double transform_utm_900913_x(unsigned const utm_srid, double const x, double const y)
ALWAYS_INLINE double transform_utm_900913_y(unsigned const utm_srid, double const x, double const y)
ALWAYS_INLINE double transform_utm_4326_y(unsigned const utm_srid, double const x, double const y)