mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
30 lines
603 B
C++
30 lines
603 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 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
|