2017-04-02 22:17:16 +02:00
|
|
|
#ifndef LAMBERTCONIC_H
|
|
|
|
#define LAMBERTCONIC_H
|
|
|
|
|
2017-04-03 20:29:35 +02:00
|
|
|
#include "ellipsoid.h"
|
2017-04-02 22:17:16 +02:00
|
|
|
#include "projection.h"
|
|
|
|
|
2018-01-08 23:47:45 +01:00
|
|
|
class LambertConic1 : public Projection
|
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
|
|
|
|
|
|
|
virtual QPointF ll2xy(const Coordinates &c) const;
|
|
|
|
virtual Coordinates xy2ll(const QPointF &p) const;
|
|
|
|
|
|
|
|
private:
|
2018-01-08 23:47:45 +01:00
|
|
|
double _longitudeOrigin;
|
|
|
|
double _falseEasting;
|
|
|
|
double _falseNorthing;
|
2017-04-02 22:17:16 +02:00
|
|
|
|
2018-01-08 23:47:45 +01:00
|
|
|
double _es;
|
|
|
|
double _es_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;
|
|
|
|
};
|
|
|
|
|
|
|
|
class LambertConic2 : public Projection
|
|
|
|
{
|
|
|
|
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);
|
|
|
|
|
|
|
|
virtual QPointF ll2xy(const Coordinates &c) const;
|
|
|
|
virtual Coordinates xy2ll(const QPointF &p) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
LambertConic1 _lc1;
|
2017-04-02 22:17:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LAMBERTCONIC_H
|