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;
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);
221 int& zone,
bool& northp, real& x, real& y,
222 real&
gamma, real& k,
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);
422 #endif // GEOGRAPHICLIB_UTMUPS_HPP
#define GEOGRAPHICLIB_EXPORT
static Math::real Flattening()
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.
static real CentralMeridian(int zone)
const mpreal gamma(const mpreal &x, mp_rnd_t r=mpreal::get_default_rnd())
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)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x