mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
31 lines
649 B
C++
31 lines
649 B
C++
#ifndef MERCATOR_H
|
|
#define MERCATOR_H
|
|
|
|
#include "ct.h"
|
|
|
|
class Ellipsoid;
|
|
|
|
class Mercator : public CT
|
|
{
|
|
public:
|
|
Mercator(const Ellipsoid &ellipsoid, double latitudeOrigin,
|
|
double longitudeOrigin, double falseEasting, double falseNorthing);
|
|
|
|
virtual CT *clone() const {return new Mercator(*this);}
|
|
virtual bool operator==(const CT &ct) const;
|
|
|
|
virtual PointD ll2xy(const Coordinates &c) const;
|
|
virtual Coordinates xy2ll(const PointD &p) const;
|
|
|
|
private:
|
|
double _a, _e;
|
|
double _latitudeOrigin;
|
|
double _longitudeOrigin;
|
|
double _falseNorthing;
|
|
double _falseEasting;
|
|
double _scaleFactor;
|
|
double _ab, _bb, _cb, _db;
|
|
};
|
|
|
|
#endif // MERCATOR_H
|