MSUProj-Dev  0.6-20
msuproj.h
Go to the documentation of this file.
1 #ifndef MSUPROJ_H
2 #define MSUPROJ_H
3 
4 
5 #include <msucore.h>
6 
7 
8 namespace msumr {
9 
17 class MSUPROJ_EXPORT MSUProj
18 {
19 
20 public:
21 
25  MSUProj();
26 
30  ~MSUProj();
31 
36  {
39  VERSION_ARCH
40  };
41 
50  const char* getVersion(VERSION_TYPE type = VERSION_STRING) const;
51 
56  void setDst(std::string file);
57 
65  void setDstFormat(std::string format);
66 
74  const RETURN_CODE setSrc(std::string file);
75 
83  const RETURN_CODE readGCP(std::string file);
84 
97  void setPerimSize(const unsigned int &perim);
98 
105  const std::string getUTM() const;
106 
115  const RETURN_CODE warp(const bool &useUTM = false, const bool &zerosAsND = false);
116 
121  unsigned int getSrcXSize() const;
122 
127  unsigned int getSrcYSize() const;
128 
133  unsigned int getGCPXSize() const;
134 
139  unsigned int getGCPYSize() const;
140 
145  unsigned int getGCPXStep() const;
146 
151  unsigned int getGCPYStep() const;
152 
157  bool ifAddLogo() const;
158 
163  void setAddLogo(bool enabled);
164 
165 private:
166 
170  enum COMPARE_COORDS
171  {
172  MIN_LON,
173  MAX_LON,
174  MIN_LAT,
175  MAX_LAT
176  };
177 
178  GDALDataset* mSrcDS;
179 
180  GCP* mGCPs;
181 
182  std::string mDstFile;
183  std::string mDstFormat;
184 
185  bool mAddLogo;
186 
187  bool mHemisphere;
188  unsigned int mZone;
191 
192  unsigned int mPerimSize;
193 
194  unsigned int mGCPXSize;
195  unsigned int mGCPYSize;
196  unsigned int mGCPXStep;
197  unsigned int mGCPYStep;
198  unsigned int mGCPSize;
199 
209  double *mGeoTransform;
210 
211 };
212 
213 }
214 
215 #endif // MSUPROJ_H
Definition: msucore.h:13
Return a version date.
Definition: msuproj.h:38
The class for reprojecting geo data of the sensing equipment MSU-MR of the ERS satellite Meteor-M...
Definition: msuproj.h:17
VERSION_TYPE
The enumiration for getVersion() method.
Definition: msuproj.h:35
Return a version string.
Definition: msuproj.h:37