10 #if !defined(GEOGRAPHICLIB_GEOCOORDS_HPP) 11 #define GEOGRAPHICLIB_GEOCOORDS_HPP 1 59 _alt_easting = _easting;
60 _alt_northing = _northing;
65 static void UTMUPSString(
int zone,
bool northp,
66 real easting, real northing,
67 int prec,
bool abbrev, std::string& utm);
80 , _easting(
Math::NaN())
81 , _northing(
Math::NaN())
180 bool centerp =
true,
bool longfirst =
false)
181 { Reset(s, centerp, longfirst); }
195 Reset(latitude, longitude, zone);
208 GeoCoords(
int zone,
bool northp, real easting, real northing) {
209 Reset(zone, northp, easting, northing);
223 void Reset(
const std::string&
s,
224 bool centerp =
true,
bool longfirst =
false);
240 _zone, _northp, _easting, _northing, _gamma, _k,
244 if (_long >= 180) _long -= 360;
245 else if (_long < -180) _long += 360;
260 void Reset(
int zone,
bool northp, real easting, real northing) {
262 _lat, _long, _gamma, _k);
266 _northing = northing;
318 int Zone()
const {
return _zone; }
347 _alt_easting, _alt_northing, _alt_gamma, _alt_k,
396 std::string GeoRepresentation(
int prec = 0,
bool longfirst =
false)
const;
419 std::string DMSRepresentation(
int prec = 0,
bool longfirst =
false,
420 char dmssep =
char(0))
445 std::string MGRSRepresentation(
int prec = 0)
const;
465 std::string UTMUPSRepresentation(
int prec = 0,
bool abbrev =
true)
const;
480 std::string UTMUPSRepresentation(
bool northp,
int prec = 0,
481 bool abbrev =
true)
const;
490 std::string AltMGRSRepresentation(
int prec = 0)
const;
503 std::string AltUTMUPSRepresentation(
int prec = 0,
bool abbrev =
true)
519 std::string AltUTMUPSRepresentation(
bool northp,
int prec = 0,
520 bool abbrev =
true)
const;
547 #endif // GEOGRAPHICLIB_GEOCOORDS_HPP
#define GEOGRAPHICLIB_EXPORT
GeoCoords(int zone, bool northp, real easting, real northing)
Math::real Northing() const
static Math::real Flattening()
Header for GeographicLib::UTMUPS class.
Math::real AltScale() const
GeoCoords(real latitude, real longitude, int zone=UTMUPS::STANDARD)
Mathematical functions needed by GeographicLib.
Conversion between geographic coordinates.
static Math::real MajorRadius()
Math::real AltEasting() const
void Reset(real latitude, real longitude, int zone=UTMUPS::STANDARD)
static void Forward(real lat, real lon, int &zone, bool &northp, real &x, real &y, real &gamma, real &k, int setzone=STANDARD, bool mgrslimits=false)
Math::real Easting() const
Convert between geographic coordinates and UTM/UPS.
Math::real MajorRadius() const
Namespace for GeographicLib.
Math::real AltNorthing() const
Math::real Longitude() const
static void Reverse(int zone, bool northp, real x, real y, real &lat, real &lon, real &gamma, real &k, bool mgrslimits=false)
Header for GeographicLib::Constants class.
Math::real Convergence() const
void Reset(int zone, bool northp, real easting, real northing)
Math::real Latitude() const
void SetAltZone(int zone=UTMUPS::STANDARD) const
Math::real AltConvergence() const
GeoCoords(const std::string &s, bool centerp=true, bool longfirst=false)
Math::real Flattening() const
static int StandardZone(real lat, real lon, int setzone=STANDARD)