UNCLASSIFIED

GeographicTranslator
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
CoordinateSystem.cpp
Go to the documentation of this file.
1 // CLASSIFICATION: UNCLASSIFIED
2 
3 #include "CoordinateSystem.h"
4 
5 
6 using namespace MSP::CCS;
7 
8 
10  semiMajorAxis( 6378137.0 ),
11  flattening( 1 / 298.257223563 )
12 {
13 /*
14  * The constructor defaults the ellipsoid parameters to WGS84.
15  *
16  */
17 }
18 
19 
20 CoordinateSystem::CoordinateSystem( double _semiMajorAxis, double _flattening ) :
21  semiMajorAxis( _semiMajorAxis ),
22  flattening( _flattening )
23 {
24 /*
25  * The constructor receives the ellipsoid parameters and
26  * as inputs.
27  *
28  * ellipsoidSemiMajorAxis : Semi-major axis of ellipsoid, in meters (input)
29  * ellipsoidFlattening : Flattening of ellipsoid (input)
30  */
31 }
32 
33 
35 {
36  semiMajorAxis = 0;
37  flattening = 0;
38 }
39 
40 
41 /*long CoordinateSystem::setParameters( double _semiMajorAxis, double _flattening )
42 {
43 
44  * The function setParameters sets the current ellipsoid
45  * parameters.
46  *
47  * ellipsoidSemiMajorAxis : Semi-major axis of ellipsoid, in meters (input)
48  * ellipsoidFlattening : Flattening of ellipsoid (input)
49 
50 
51  semiMajorAxis = _semiMajorAxis;
52  flattening = _flattening;
53 
54  return 0;
55 }*/
56 
57 
58 void CoordinateSystem::getEllipsoidParameters( double* _semiMajorAxis, double* _flattening )
59 {
60 /*
61  * The function getParameters returns the current ellipsoid
62  * parameters.
63  *
64  * ellipsoidSemiMajorAxis : Semi-major axis of ellipsoid, in meters (output)
65  * ellipsoidFlattening : Flattening of ellipsoid (output)
66  */
67 
68  *_semiMajorAxis = semiMajorAxis;
69  *_flattening = flattening;
70 
71 }
72 
73 // CLASSIFICATION: UNCLASSIFIED