2017-04-02 22:17:16 +02:00
|
|
|
#ifndef LAMBERTCONIC_H
|
|
|
|
#define LAMBERTCONIC_H
|
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
#include "ct.h"
|
2017-04-02 22:17:16 +02:00
|
|
|
|
2018-02-26 19:13:57 +01:00
|
|
|
class Ellipsoid;
|
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
class LambertConic1 : public CT
|
2017-04-02 22:17:16 +02:00
|
|
|
{
|
|
|
|
public:
|
2018-01-08 23:47:45 +01:00
|
|
|
LambertConic1() {}
|
2018-01-20 20:13:56 +01:00
|
|
|
LambertConic1(const Ellipsoid *ellipsoid, double latitudeOrigin,
|
2018-01-08 23:47:45 +01:00
|
|
|
double longitudeOrigin, double scale, double falseEasting,
|
|
|
|
double falseNorthing);
|
2017-04-02 22:17:16 +02:00
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
virtual CT *clone() const {return new LambertConic1(*this);}
|
|
|
|
|
2018-04-15 16:27:47 +02:00
|
|
|
virtual PointD ll2xy(const Coordinates &c) const;
|
|
|
|
virtual Coordinates xy2ll(const PointD &p) const;
|
2017-04-02 22:17:16 +02:00
|
|
|
|
|
|
|
private:
|
2018-01-08 23:47:45 +01:00
|
|
|
double _longitudeOrigin;
|
|
|
|
double _falseEasting;
|
|
|
|
double _falseNorthing;
|
2017-04-02 22:17:16 +02:00
|
|
|
|
2018-05-17 22:41:56 +02:00
|
|
|
double _e;
|
|
|
|
double _e_over_2;
|
2017-04-02 22:17:16 +02:00
|
|
|
double _n;
|
2018-01-08 23:47:45 +01:00
|
|
|
double _t0;
|
|
|
|
double _rho0;
|
|
|
|
double _rho_olat;
|
|
|
|
};
|
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
class LambertConic2 : public CT
|
2018-01-08 23:47:45 +01:00
|
|
|
{
|
|
|
|
public:
|
2018-01-20 20:13:56 +01:00
|
|
|
LambertConic2(const Ellipsoid *ellipsoid, double standardParallel1,
|
2018-01-08 23:47:45 +01:00
|
|
|
double standardParallel2, double latitudeOrigin, double longitudeOrigin,
|
|
|
|
double falseEasting, double falseNorthing);
|
|
|
|
|
2018-01-25 00:19:11 +01:00
|
|
|
virtual CT *clone() const {return new LambertConic2(*this);}
|
|
|
|
|
2018-04-15 16:27:47 +02:00
|
|
|
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;
|
2017-04-02 22:17:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LAMBERTCONIC_H
|