Orfeo Toolbox  4.0
otbEckert4MapProjection.txx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 
19 #ifndef __otbEckert4MapProjection_txx
20 #define __otbEckert4MapProjection_txx
21 
23 
24 namespace otb
25 {
26 
27 template <TransformDirection::TransformationDirection TTransform>
30 {
31  this->SetWkt("ossimEckert4Projection");
32 }
33 
34 template <TransformDirection::TransformationDirection TTransform>
37 {
38 }
39 
41 template <TransformDirection::TransformationDirection TTransform>
43 ::SetFalseEasting(double falseEasting)
44 {
45  this->SetParameter("FalseEasting", Utils::ConvertToString(falseEasting));
46  this->Modified();
47 }
48 
50 template <TransformDirection::TransformationDirection TTransform>
52 ::SetFalseNorthing(double falseNorthing)
53 {
54  this->SetParameter("FalseNorthing", Utils::ConvertToString(falseNorthing));
55  this->Modified();
56 }
57 
59 template <TransformDirection::TransformationDirection TTransform>
62 {
63  double falseNorthing = atof(this->GetParameter("FalseNorthing").c_str());
64  return falseNorthing;
65 }
66 
68 template <TransformDirection::TransformationDirection TTransform>
71 {
72  double falseEasting = atof(this->GetParameter("FalseEasting").c_str());
73  return falseEasting;
74 }
75 
76 template <TransformDirection::TransformationDirection TTransform>
78 ::SetParameters(double falseEasting, double falseNorthing)
79 {
80  this->SetParameter("FalseEasting", Utils::ConvertToString(falseEasting));
81  this->SetParameter("FalseNorthing", Utils::ConvertToString(falseNorthing));
82  this->Modified();
83 }
84 
85 } // namespace otb
86 
87 #endif

Generated at Sat Mar 8 2014 15:54:40 for Orfeo Toolbox with doxygen 1.8.3.1