VAPOR3 3.9.4
Proj4API.h
Go to the documentation of this file.
1#ifndef _Proj4API_h_
2#define _Proj4API_h_
3
4#include <vapor/MyBase.h>
5
6namespace VAPoR {
7
8//
18public:
21
35 //
36 int Initialize(string srcdef, string dstdef);
37
64 int Transform(double *x, double *y, size_t n, int offset = 1) const;
65 int Transform(double *x, double *y, double *z, size_t n, int offset = 1) const;
66 int Transform(float *x, float *y, size_t n, int offset = 1) const;
67 int Transform(float *x, float *y, float *z, size_t n, int offset = 1) const;
68
77 //
78 bool IsLatLonSrc() const;
79
88 //
89 bool IsLatLonDst() const;
90
91 bool IsGeocentSrc() const;
92 bool IsGeocentDst() const;
93
95 string GetSrcStr() const;
96
98 string GetDstStr() const;
99
100 int Transform(string srcdef, string dstdef, double *x, double *y, double *z, size_t n, int offset) const;
101 int Transform(string srcdef, string dstdef, float *x, float *y, float *z, size_t n, int offset) const;
102
107
108 string ProjErr() const;
109
113 //
114 void Clamp(double *x, double *y, size_t n, int offset) const;
115
120 //
121 bool IsCylindrical() const;
122
123private:
124 void *_pjSrc;
125 void *_pjDst;
126
127 int _Initialize(string srcdef, string dstdef, void **pjSrc, void **pjDst) const;
128
129 int _Transform(void *pjSrc, void *pjDst, double *x, double *y, double *z, size_t n, int offset) const;
130
131 int _Transform(void *pjSrc, void *pjDst, float *x, float *y, float *z, size_t n, int offset) const;
132};
133}; // namespace VAPoR
134
135#endif
Wrapper for proj4 C API.
Definition: Proj4API.h:17
int Transform(string srcdef, string dstdef, double *x, double *y, double *z, size_t n, int offset) const
int Transform(double *x, double *y, double *z, size_t n, int offset=1) const
int Transform(string srcdef, string dstdef, float *x, float *y, float *z, size_t n, int offset) const
int Transform(float *x, float *y, size_t n, int offset=1) const
string GetDstStr() const
Return the current destination projection definition string.
bool IsLatLonSrc() const
bool IsGeocentSrc() const
string ProjErr() const
void Clamp(double *x, double *y, size_t n, int offset) const
int Initialize(string srcdef, string dstdef)
int Transform(float *x, float *y, float *z, size_t n, int offset=1) const
bool IsCylindrical() const
bool IsGeocentDst() const
bool IsLatLonDst() const
int Transform(double *x, double *y, size_t n, int offset=1) const
string GetSrcStr() const
Return the current source projection definition string.
Wasp base class.
Definition: MyBase.h:67
#define VDF_API
Definition: common.h:73