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); }
94 static bool CheckCoords(
bool utmp,
bool northp, real x, real y,
95 bool msgrlimits =
false,
bool throwp =
true);
179 static int StandardZone(
real lat,
real lon,
int setzone = STANDARD);
220 static void Forward(
real lat,
real lon,
221 int& zone,
bool& northp,
real& x,
real& y,
223 int setzone = STANDARD,
bool mgrslimits =
false);
262 static void Reverse(
int zone,
bool northp,
real x,
real y,
264 bool mgrslimits =
false);
270 int& zone,
bool& northp, real& x, real& y,
271 int setzone = STANDARD,
bool mgrslimits =
false) {
273 Forward(lat, lon, zone, northp, x, y, gamma, k, setzone, mgrslimits);
279 static void Reverse(
int zone,
bool northp, real x, real y,
280 real& lat, real& lon,
bool mgrslimits =
false) {
282 Reverse(zone, northp, x, y, lat, lon, gamma, k, mgrslimits);
318 static void Transfer(
int zonein,
bool northpin,
real xin,
real yin,
319 int zoneout,
bool northpout,
real& xout,
real& yout,
340 static void DecodeZone(
const std::string& zonestr,
341 int& zone,
bool& northp);
360 static std::string EncodeZone(
int zone,
bool northp,
bool abbrev =
true);
375 static void DecodeEPSG(
int epsg,
int& zone,
bool& northp);
388 static int EncodeEPSG(
int zone,
bool northp);
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Convert between geographic coordinates and UTM/UPS.
static Math::real Flattening()
static Math::real EquatorialRadius()
static void Forward(real lat, real lon, int &zone, bool &northp, real &x, real &y, int setzone=STANDARD, bool mgrslimits=false)
static void Reverse(int zone, bool northp, real x, real y, real &lat, real &lon, bool mgrslimits=false)
Namespace for GeographicLib.