10#if !defined(GEOGRAPHICLIB_GEOREF_HPP)
11#define GEOGRAPHICLIB_GEOREF_HPP 1
35 static const char*
const digits_;
36 static const char*
const lontile_;
37 static const char*
const lattile_;
38 static const char*
const degrees_;
39 static constexpr int tile_ = 15;
40 static constexpr int lonorig_ = -
Math::hd;
41 static constexpr int latorig_ = -
Math::qd;
42 static constexpr int base_ = 10;
43 static constexpr int baselen_ = 4;
44 static constexpr int maxprec_ = 11;
45 static constexpr int maxlen_ = baselen_ + 2 * maxprec_;
74 static void Forward(real lat, real lon,
int prec, std::string& georef);
102 static void Reverse(
const std::string& georef, real& lat, real& lon,
103 int& prec,
bool centerp =
true);
115 return real(prec < 0 ? 15 : 1);
119 prec = (std::max)(2, (std::min)(
int(maxprec_), prec));
121 return 1/(60 *
real(pow(
real(base_), prec - 2)));
135 using std::fabs; res = fabs(res);
136 for (
int prec = 0; prec < maxprec_; ++prec) {
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
static int Precision(real res)
static void Forward(real lat, real lon, int prec, std::string &georef)
static Math::real Resolution(int prec)
static void Reverse(const std::string &georef, real &lat, real &lon, int &prec, bool centerp=true)
static constexpr int qd
degrees per quarter turn
static constexpr int hd
degrees per half turn
Namespace for GeographicLib.