1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 23:03:22 +02:00
GPXSee/src/map/lambertconic.h

51 lines
1.1 KiB
C
Raw Normal View History

#ifndef LAMBERTCONIC_H
#define LAMBERTCONIC_H
#include "ct.h"
2018-02-26 19:13:57 +01:00
class Ellipsoid;
class LambertConic1 : public CT
{
public:
2018-01-08 23:47:45 +01:00
LambertConic1() {}
LambertConic1(const Ellipsoid *ellipsoid, double latitudeOrigin,
2018-01-08 23:47:45 +01:00
double longitudeOrigin, double scale, double falseEasting,
double falseNorthing);
virtual CT *clone() const {return new LambertConic1(*this);}
virtual PointD ll2xy(const Coordinates &c) const;
virtual Coordinates xy2ll(const PointD &p) const;
private:
2018-01-08 23:47:45 +01:00
double _longitudeOrigin;
double _falseEasting;
double _falseNorthing;
2018-01-08 23:47:45 +01:00
double _es;
double _es_over_2;
double _n;
2018-01-08 23:47:45 +01:00
double _t0;
double _rho0;
double _rho_olat;
};
class LambertConic2 : public CT
2018-01-08 23:47:45 +01:00
{
public:
LambertConic2(const Ellipsoid *ellipsoid, double standardParallel1,
2018-01-08 23:47:45 +01:00
double standardParallel2, double latitudeOrigin, double longitudeOrigin,
double falseEasting, double falseNorthing);
virtual CT *clone() const {return new LambertConic2(*this);}
virtual PointD ll2xy(const Coordinates &c) const;
virtual Coordinates xy2ll(const PointD &p) const;
2018-01-08 23:47:45 +01:00
private:
LambertConic1 _lc1;
};
#endif // LAMBERTCONIC_H