2018-05-13 00:40:03 +02:00
|
|
|
#ifndef MERCATOR_H
|
|
|
|
#define MERCATOR_H
|
|
|
|
|
|
|
|
#include "ct.h"
|
|
|
|
|
|
|
|
class Ellipsoid;
|
|
|
|
|
|
|
|
class Mercator : public CT
|
|
|
|
{
|
|
|
|
public:
|
2021-06-17 21:58:25 +02:00
|
|
|
Mercator(const Ellipsoid &ellipsoid, double latitudeOrigin,
|
2018-05-13 00:40:03 +02:00
|
|
|
double longitudeOrigin, double falseEasting, double falseNorthing);
|
|
|
|
|
|
|
|
virtual CT *clone() const {return new Mercator(*this);}
|
2020-04-21 23:26:35 +02:00
|
|
|
virtual bool operator==(const CT &ct) const;
|
2018-05-13 00:40:03 +02:00
|
|
|
|
|
|
|
virtual PointD ll2xy(const Coordinates &c) const;
|
|
|
|
virtual Coordinates xy2ll(const PointD &p) const;
|
|
|
|
|
|
|
|
private:
|
2018-05-17 22:41:56 +02:00
|
|
|
double _a, _e;
|
2018-05-13 00:40:03 +02:00
|
|
|
double _latitudeOrigin;
|
|
|
|
double _longitudeOrigin;
|
|
|
|
double _falseNorthing;
|
|
|
|
double _falseEasting;
|
|
|
|
double _scaleFactor;
|
|
|
|
double _ab, _bb, _cb, _db;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MERCATOR_H
|