OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
LatLong-UTMconversion.h
Go to the documentation of this file.
1 //LatLong- UTM conversion..h
2 //definitions for lat/long to UTM and UTM to lat/lng conversions
3 #include <string.h>
4 
5 #ifndef LATLONGCONV
6 #define LATLONGCONV
7 
8 void LLtoUTM(int ReferenceEllipsoid, const double Lat, const double Long,
9  double &UTMNorthing, double &UTMEasting, char* UTMZone);
10 void UTMtoLL(int ReferenceEllipsoid, const double UTMNorthing, const double UTMEasting, const char* UTMZone,
11  double& Lat, double& Long);
12 char UTMLetterDesignator(double Lat);
13 void LLtoSwissGrid(const double Lat, const double Long,
14  double &SwissNorthing, double &SwissEasting);
15 void SwissGridtoLL(const double SwissNorthing, const double SwissEasting,
16  double& Lat, double& Long);
17 
18 class Ellipsoid {
19 public:
20 
22  };
23 
24  Ellipsoid(int Id, const char* name, double radius, double ecc) {
25  id = Id;
28  eccentricitySquared = ecc;
29  }
30 
31  int id;
32  const char* ellipsoidName;
35 
36 };
37 
38 
39 
40 #endif
Ellipsoid(int Id, const char *name, double radius, double ecc)
void UTMtoLL(int ReferenceEllipsoid, const double UTMNorthing, const double UTMEasting, const char *UTMZone, double &Lat, double &Long)
char UTMLetterDesignator(double Lat)
void SwissGridtoLL(const double SwissNorthing, const double SwissEasting, double &Lat, double &Long)
void LLtoSwissGrid(const double Lat, const double Long, double &SwissNorthing, double &SwissEasting)
void radius(double A)
Definition: proj_report.c:132
const char * ellipsoidName
void LLtoUTM(int ReferenceEllipsoid, const double Lat, const double Long, double &UTMNorthing, double &UTMEasting, char *UTMZone)
double eccentricitySquared