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

46 lines
1012 B
C
Raw Normal View History

#ifndef LAMBERTCONIC_H
#define LAMBERTCONIC_H
#include "ellipsoid.h"
#include "projection.h"
2018-01-08 23:47:45 +01:00
class LambertConic1 : public Projection
{
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 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;
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 Projection
{
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 QPointF ll2xy(const Coordinates &c) const;
virtual Coordinates xy2ll(const QPointF &p) const;
private:
LambertConic1 _lc1;
};
#endif // LAMBERTCONIC_H