Initial checkin.
[tcxmerge] / LatLong-UTMconversion.h
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
19 class Ellipsoid
20 {
21 public:
22         Ellipsoid(){};
23         Ellipsoid(int Id, char* name, double radius, double ecc)
24         {
25                 id = Id; ellipsoidName = name; 
26                 EquatorialRadius = radius; eccentricitySquared = ecc;
27         }
28
29         int id;
30         char* ellipsoidName;
31         double EquatorialRadius; 
32         double eccentricitySquared;  
33
34 };
35
36
37
38 #endif