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) {
139 if (Resolution(prec) <= res)
149 #endif // GEOGRAPHICLIB_GEOREF_HPP
#define GEOGRAPHICLIB_EXPORT
static Math::real Resolution(int prec)
static constexpr int hd
degrees per half turn
static constexpr int qd
degrees per quarter turn
Namespace for GeographicLib.
GeographicLib::Math::real real
Header for GeographicLib::Constants class.
static int Precision(real res)
Conversions for the World Geographic Reference System (georef)