2017-03-29 00:17:47 +02:00
|
|
|
#ifndef TRANSVERSEMERCATOR_H
|
|
|
|
#define TRANSVERSEMERCATOR_H
|
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
#include "ct.h"
|
2018-02-26 19:13:57 +01:00
|
|
|
|
|
|
|
class Ellipsoid;
|
2017-04-03 20:29:35 +02:00
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
class TransverseMercator : public CT
|
2017-03-29 00:17:47 +02:00
|
|
|
{
|
|
|
|
public:
|
2018-01-20 20:13:56 +01:00
|
|
|
TransverseMercator(const Ellipsoid *ellipsoid, double latitudeOrigin,
|
2017-05-08 19:53:50 +02:00
|
|
|
double longitudeOrigin, double scale, double falseEasting,
|
|
|
|
double falseNorthing);
|
2017-03-29 00:17:47 +02:00
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
virtual CT *clone() const {return new TransverseMercator(*this);}
|
|
|
|
|
2018-04-15 16:27:47 +02:00
|
|
|
virtual PointD ll2xy(const Coordinates &c) const;
|
|
|
|
virtual Coordinates xy2ll(const PointD &p) const;
|
2017-03-29 00:17:47 +02:00
|
|
|
|
|
|
|
private:
|
2017-05-08 19:53:50 +02:00
|
|
|
double _longitudeOrigin;
|
|
|
|
double _latitudeOrigin;
|
2017-03-29 00:17:47 +02:00
|
|
|
double _scale;
|
|
|
|
double _falseEasting;
|
|
|
|
double _falseNorthing;
|
2018-03-19 19:13:48 +01:00
|
|
|
double _a;
|
2017-05-08 19:53:50 +02:00
|
|
|
double _es;
|
|
|
|
double _ebs;
|
|
|
|
double _ap, _bp, _cp, _dp, _ep;
|
2017-03-29 00:17:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRANSVERSEMERCATOR_H
|