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_;
52 maxlen_ = baselen_ + 2 * maxprec_,
82 static void Forward(real lat, real lon,
int prec, std::string& georef);
110 static void Reverse(
const std::string& georef, real& lat, real& lon,
111 int& prec,
bool centerp =
true);
123 return real(prec < 0 ? 15 : 1);
127 prec = (std::max)(2, (std::min)(int(maxprec_), prec));
129 return 1/(60 *
real(pow(
real(base_), prec - 2)));
143 using std::abs; res = abs(res);
144 for (
int prec = 0; prec < maxprec_; ++prec) {
147 if (Resolution(prec) <= res)
157 #if defined(_MSC_VER) 158 # pragma warning (pop) 161 #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)