10 #if !defined(GEOGRAPHICLIB_UTMUPS_HPP)
11 #define GEOGRAPHICLIB_UTMUPS_HPP 1
78 static const int falseeasting_[4];
79 static const int falsenorthing_[4];
80 static const int mineasting_[4];
81 static const int maxeasting_[4];
82 static const int minnorthing_[4];
83 static const int maxnorthing_[4];
84 static const int epsg01N = 32601;
85 static const int epsg60N = 32660;
86 static const int epsgN = 32661;
87 static const int epsg01S = 32701;
88 static const int epsg60S = 32760;
89 static const int epsgS = 32761;
90 static real CentralMeridian(
int zone)
91 {
return real(6 * zone - 183); }
92 static void CheckLatLon(real lat, real lon);
95 static bool CheckCoords(
bool utmp,
bool northp, real x, real y,
96 bool msgrlimits =
false,
bool throwp =
true);
180 static int StandardZone(real lat, real lon,
int setzone = STANDARD);
223 static void Forward(real lat, real lon,
224 int& zone,
bool& northp, real& x, real& y,
225 real& gamma, real& k,
226 int setzone = STANDARD,
bool mgrslimits =
false);
265 static void Reverse(
int zone,
bool northp, real x, real y,
266 real& lat, real& lon, real& gamma, real& k,
267 bool mgrslimits =
false);
273 int& zone,
bool& northp, real& x, real& y,
274 int setzone = STANDARD,
bool mgrslimits =
false) {
276 Forward(lat, lon, zone, northp, x, y, gamma, k, setzone, mgrslimits);
282 static void Reverse(
int zone,
bool northp, real x, real y,
283 real& lat, real& lon,
bool mgrslimits =
false) {
285 Reverse(zone, northp, x, y, lat, lon, gamma, k, mgrslimits);
321 static void Transfer(
int zonein,
bool northpin, real xin, real yin,
322 int zoneout,
bool northpout, real& xout, real& yout,
343 static void DecodeZone(
const std::string& zonestr,
int& zone,
bool& northp);
362 static std::string EncodeZone(
int zone,
bool northp,
bool abbrev =
true);
377 static void DecodeEPSG(
int epsg,
int& zone,
bool& northp);
390 static int EncodeEPSG(
int zone,
bool northp);
432 #endif // GEOGRAPHICLIB_UTMUPS_HPP
#define GEOGRAPHICLIB_EXPORT
static Math::real Flattening()
GeographicLib::Math::real real
static void Forward(real lat, real lon, int &zone, bool &northp, real &x, real &y, int setzone=STANDARD, bool mgrslimits=false)
static Math::real MajorRadius()
Convert between geographic coordinates and UTM/UPS.
Namespace for GeographicLib.
Header for GeographicLib::Constants class.
static void Reverse(int zone, bool northp, real x, real y, real &lat, real &lon, bool mgrslimits=false)