00001
00002
00003 #include "MapProjection6Parameters.h"
00004
00005
00006 using namespace MSP::CCS;
00007
00008
00009 MapProjection6Parameters::MapProjection6Parameters() :
00010 CoordinateSystemParameters( CoordinateType::albersEqualAreaConic ),
00011 _centralMeridian( 0 ),
00012 _originLatitude( 0),
00013 _standardParallel1( 0 ),
00014 _standardParallel2( 0 ),
00015 _falseEasting( 0 ),
00016 _falseNorthing( 0 )
00017 {
00018 }
00019
00020
00021 MapProjection6Parameters::MapProjection6Parameters( CoordinateType::Enum _coordinateType ) :
00022 CoordinateSystemParameters( _coordinateType ),
00023 _centralMeridian( 0 ),
00024 _originLatitude( 0),
00025 _standardParallel1( 0 ),
00026 _standardParallel2( 0 ),
00027 _falseEasting( 0 ),
00028 _falseNorthing( 0 )
00029 {
00030 }
00031
00032
00033 MapProjection6Parameters::MapProjection6Parameters( CoordinateType::Enum _coordinateType, double __centralMeridian, double __originLatitude, double __standardParallel1, double __standardParallel2, double __falseEasting, double __falseNorthing ) :
00034 CoordinateSystemParameters( _coordinateType ),
00035 _centralMeridian( __centralMeridian ),
00036 _originLatitude( __originLatitude ),
00037 _standardParallel1( __standardParallel1 ),
00038 _standardParallel2( __standardParallel2 ),
00039 _falseEasting( __falseEasting ),
00040 _falseNorthing( __falseNorthing )
00041 {
00042 }
00043
00044
00045 MapProjection6Parameters::MapProjection6Parameters( const MapProjection6Parameters &p )
00046 {
00047 _coordinateType = p._coordinateType;
00048
00049 _centralMeridian = p._centralMeridian;
00050 _originLatitude = p._originLatitude;
00051 _standardParallel1 = p._standardParallel1;
00052 _standardParallel2 = p._standardParallel2;
00053 _falseEasting = p._falseEasting;
00054 _falseNorthing = p._falseNorthing;
00055 }
00056
00057
00058 MapProjection6Parameters::~MapProjection6Parameters()
00059 {
00060 _centralMeridian = 0;
00061 _originLatitude = 0;
00062 _standardParallel1 = 0;
00063 _standardParallel2 = 0;
00064 _falseEasting = 0;
00065 _falseNorthing = 0;
00066 }
00067
00068
00069 MapProjection6Parameters& MapProjection6Parameters::operator=( const MapProjection6Parameters &p )
00070 {
00071 if( this != &p )
00072 {
00073 _coordinateType = p._coordinateType;
00074
00075 _centralMeridian = p._centralMeridian;
00076 _originLatitude = p._originLatitude;
00077 _standardParallel1 = p._standardParallel1;
00078 _standardParallel2 = p._standardParallel2;
00079 _falseEasting = p._falseEasting;
00080 _falseNorthing = p._falseNorthing;
00081 }
00082
00083 return *this;
00084 }
00085
00086
00087 void MapProjection6Parameters::setCentralMeridian( double __centralMeridian )
00088 {
00089 _centralMeridian = __centralMeridian;
00090 }
00091
00092
00093 void MapProjection6Parameters::setOriginLatitude( double __originLatitude )
00094 {
00095 _originLatitude = __originLatitude;
00096 }
00097
00098
00099 void MapProjection6Parameters::setStandardParallel1( double __standardParallel1 )
00100 {
00101 _standardParallel1 = __standardParallel1;
00102 }
00103
00104
00105 void MapProjection6Parameters::setStandardParallel2( double __standardParallel2 )
00106 {
00107 _standardParallel2 = __standardParallel2;
00108 }
00109
00110
00111 void MapProjection6Parameters::setFalseEasting( double __falseEasting )
00112 {
00113 _falseEasting = __falseEasting;
00114 }
00115
00116
00117 void MapProjection6Parameters::setFalseNorthing( double __falseNorthing )
00118 {
00119 _falseNorthing = __falseNorthing;
00120 }
00121
00122
00123 double MapProjection6Parameters::centralMeridian() const
00124 {
00125 return _centralMeridian;
00126 }
00127
00128
00129 double MapProjection6Parameters::originLatitude() const
00130 {
00131 return _originLatitude;
00132 }
00133
00134
00135 double MapProjection6Parameters::standardParallel1() const
00136 {
00137 return _standardParallel1;
00138 }
00139
00140
00141 double MapProjection6Parameters::standardParallel2() const
00142 {
00143 return _standardParallel2;
00144 }
00145
00146
00147 double MapProjection6Parameters::falseEasting() const
00148 {
00149 return _falseEasting;
00150 }
00151
00152
00153 double MapProjection6Parameters::falseNorthing() const
00154 {
00155 return _falseNorthing;
00156 }
00157
00158
00159