10 #if !defined(GEOGRAPHICLIB_MGRS_HPP)
11 #define GEOGRAPHICLIB_MGRS_HPP 1
18 # pragma warning (push)
19 # pragma warning (disable: 4251)
22 namespace GeographicLib {
66 static const real eps_;
68 static const real angeps_;
69 static const std::string hemispheres_;
70 static const std::string utmcols_[3];
71 static const std::string utmrow_;
72 static const std::string upscols_[4];
73 static const std::string upsrows_[2];
74 static const std::string latband_;
75 static const std::string upsband_;
76 static const std::string digits_;
78 static const int mineasting_[4];
79 static const int maxeasting_[4];
80 static const int minnorthing_[4];
81 static const int maxnorthing_[4];
93 static void CheckCoords(
bool utmp,
bool& northp, real& x, real& y);
94 static int UTMRow(
int iband,
int icol,
int irow)
throw();
99 static int LatitudeBand(real lat)
throw() {
100 int ilat = int(std::floor(lat));
101 return (std::max)(-10, (std::min)(9, (ilat + 80)/8 - 10));
119 utmNshift_ = (maxutmSrow_ - minutmNrow_) * tile_
199 static void Forward(
int zone,
bool northp,
real x,
real y,
200 int prec, std::string& mgrs);
223 static void Forward(
int zone,
bool northp,
real x,
real y,
real lat,
224 int prec, std::string& mgrs);
264 static void Reverse(
const std::string& mgrs,
265 int& zone,
bool& northp,
real& x,
real& y,
266 int& prec,
bool centerp =
true);
294 {
return UTMUPS::InverseFlattening(); }
300 #if defined(_MSC_VER)
301 # pragma warning (pop)
304 #endif // GEOGRAPHICLIB_MGRS_HPP