10 #if !defined(GEOGRAPHICLIB_UTMUPS_HPP)
11 #define GEOGRAPHICLIB_UTMUPS_HPP 1
15 namespace GeographicLib {
64 static const real falseeasting_[4];
65 static const real falsenorthing_[4];
66 static const real mineasting_[4];
67 static const real maxeasting_[4];
68 static const real minnorthing_[4];
69 static const real maxnorthing_[4];
70 static const int epsg01N = 32601;
71 static const int epsg60N = 32660;
72 static const int epsgN = 32661;
73 static const int epsg01S = 32701;
74 static const int epsg60S = 32760;
75 static const int epsgS = 32761;
76 static real CentralMeridian(
int zone)
throw()
77 {
return real(6 * zone - 183); }
78 static void CheckLatLon(real lat, real lon);
81 static bool CheckCoords(
bool utmp,
bool northp, real x, real y,
82 bool msgrlimits =
false,
bool throwp =
true);
166 static int StandardZone(
real lat,
real lon,
int setzone = STANDARD);
209 static void Forward(
real lat,
real lon,
210 int& zone,
bool& northp,
real& x,
real& y,
212 int setzone = STANDARD,
bool mgrslimits =
false);
251 static void Reverse(
int zone,
bool northp,
real x,
real y,
253 bool mgrslimits =
false);
259 int& zone,
bool& northp, real& x, real& y,
260 int setzone = STANDARD,
bool mgrslimits =
false) {
262 Forward(lat, lon, zone, northp, x, y, gamma, k, setzone, mgrslimits);
268 static void Reverse(
int zone,
bool northp, real x, real y,
269 real& lat, real& lon,
bool mgrslimits =
false) {
271 Reverse(zone, northp, x, y, lat, lon, gamma, k, mgrslimits);
307 static void Transfer(
int zonein,
bool northpin,
real xin,
real yin,
308 int zoneout,
bool northpout,
real& xout,
real& yout,
328 static void DecodeZone(
const std::string& zonestr,
int& zone,
bool& northp);
345 static std::string EncodeZone(
int zone,
bool northp);
360 static void DecodeEPSG(
int epsg,
int& zone,
bool& northp)
throw();
373 static int EncodeEPSG(
int zone,
bool northp)
throw();
390 static
Math::real MajorRadius() throw()
391 {
return Constants::WGS84_a<real>(); }
400 {
return Constants::WGS84_f<real>(); }
409 {
return 1/Constants::WGS84_f<real>(); }
415 #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)
Mathematical functions needed by GeographicLib.
Convert between geographic coordinates and UTM/UPS.
Header for GeographicLib::Constants class.
static void Reverse(int zone, bool northp, real x, real y, real &lat, real &lon, bool mgrslimits=false)