10 #if !defined(GEOGRAPHICLIB_GEOREF_HPP) 11 #define GEOGRAPHICLIB_GEOREF_HPP 1 17 # pragma warning (push) 18 # pragma warning (disable: 4251) 41 static const char*
const digits_;
42 static const char*
const lontile_;
43 static const char*
const lattile_;
44 static const char*
const degrees_;
45 #if GEOGRAPHICLIB_PRECISION == 4 60 maxlen_ = baselen_ + 2 * maxprec_
61 #if GEOGRAPHICLIB_PRECISION == 4 94 static void Forward(real lat, real lon,
int prec, std::string& georef);
122 static void Reverse(
const std::string& georef, real& lat, real& lon,
123 int& prec,
bool centerp =
true);
135 return real(prec < 0 ? 15 : 1);
139 prec = (std::max)(2, (std::min)(int(maxprec_), prec));
141 return 1/(60 *
real(pow(
real(base_), prec - 2)));
155 using std::fabs; res = fabs(res);
156 for (
int prec = 0; prec < maxprec_; ++prec) {
159 if (Resolution(prec) <= res)
169 #if defined(_MSC_VER) 170 # pragma warning (pop) 173 #endif // GEOGRAPHICLIB_GEOREF_HPP
#define GEOGRAPHICLIB_EXPORT
static Math::real Resolution(int prec)
GeographicLib::Math::real real
Namespace for GeographicLib.
Header for GeographicLib::Constants class.
static int Precision(real res)
Conversions for the World Geographic Reference System (georef)