mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +01:00
Made the Lambert azimuthal equal-area projection naming consistent with other projections namings
This commit is contained in:
parent
0894fb0ddf
commit
8675a0e945
@ -104,7 +104,7 @@ HEADERS += src/config.h \
|
||||
src/temperaturegraphitem.h \
|
||||
src/cadencegraphitem.h \
|
||||
src/powergraphitem.h \
|
||||
src/azimuthalequalarea.h
|
||||
src/lambertazimuthal.h
|
||||
SOURCES += src/main.cpp \
|
||||
src/gui.cpp \
|
||||
src/poi.cpp \
|
||||
@ -181,7 +181,7 @@ SOURCES += src/main.cpp \
|
||||
src/temperaturegraphitem.cpp \
|
||||
src/cadencegraphitem.cpp \
|
||||
src/powergraphitem.cpp \
|
||||
src/azimuthalequalarea.cpp
|
||||
src/lambertazimuthal.cpp
|
||||
RESOURCES += gpxsee.qrc
|
||||
TRANSLATIONS = lang/gpxsee_cs.ts \
|
||||
lang/gpxsee_sv.ts \
|
||||
|
@ -42,14 +42,14 @@ Defense.
|
||||
*/
|
||||
|
||||
#include "rd.h"
|
||||
#include "azimuthalequalarea.h"
|
||||
#include "lambertazimuthal.h"
|
||||
|
||||
|
||||
#ifndef M_PI_2
|
||||
#define M_PI_2 1.57079632679489661923
|
||||
#endif // M_PI_2
|
||||
|
||||
AzimuthalEqualArea::AzimuthalEqualArea(const Ellipsoid &ellipsoid,
|
||||
LambertAzimuthal::LambertAzimuthal(const Ellipsoid &ellipsoid,
|
||||
double latitudeOrigin, double longitudeOrigin, double falseEasting,
|
||||
double falseNorthing)
|
||||
{
|
||||
@ -74,7 +74,7 @@ AzimuthalEqualArea::AzimuthalEqualArea(const Ellipsoid &ellipsoid,
|
||||
_falseEasting = falseEasting;
|
||||
}
|
||||
|
||||
QPointF AzimuthalEqualArea::ll2xy(const Coordinates &c) const
|
||||
QPointF LambertAzimuthal::ll2xy(const Coordinates &c) const
|
||||
{
|
||||
double dlam;
|
||||
double k_prime;
|
||||
@ -143,7 +143,7 @@ QPointF AzimuthalEqualArea::ll2xy(const Coordinates &c) const
|
||||
return p;
|
||||
}
|
||||
|
||||
Coordinates AzimuthalEqualArea::xy2ll(const QPointF &p) const
|
||||
Coordinates LambertAzimuthal::xy2ll(const QPointF &p) const
|
||||
{
|
||||
double dx, dy;
|
||||
double rho;
|
@ -1,13 +1,13 @@
|
||||
#ifndef AZIMUTHALEQUALAREA_H
|
||||
#define AZIMUTHALEQUALAREA_H
|
||||
#ifndef LAMBERTAZIMUTHAL_H
|
||||
#define LAMBERTAZIMUTHAL_H
|
||||
|
||||
#include "ellipsoid.h"
|
||||
#include "projection.h"
|
||||
|
||||
class AzimuthalEqualArea : public Projection
|
||||
class LambertAzimuthal : public Projection
|
||||
{
|
||||
public:
|
||||
AzimuthalEqualArea(const Ellipsoid &ellipsoid, double latitudeOrigin,
|
||||
LambertAzimuthal(const Ellipsoid &ellipsoid, double latitudeOrigin,
|
||||
double longitudeOrigin, double falseEasting, double falseNorthing);
|
||||
|
||||
virtual QPointF ll2xy(const Coordinates &c) const;
|
||||
@ -27,4 +27,4 @@ private:
|
||||
double _falseEasting;
|
||||
};
|
||||
|
||||
#endif // AZIMUTHALEQUALAREA_H
|
||||
#endif // LAMBERTAZIMUTHAL_H
|
@ -19,7 +19,7 @@
|
||||
#include "utm.h"
|
||||
#include "lambertconic.h"
|
||||
#include "albersequal.h"
|
||||
#include "azimuthalequalarea.h"
|
||||
#include "lambertazimuthal.h"
|
||||
#include "ozf.h"
|
||||
#include "rectc.h"
|
||||
#include "offlinemap.h"
|
||||
@ -210,7 +210,7 @@ bool OfflineMap::createProjection(const QString &datum,
|
||||
setup.standardParallel2, setup.latitudeOrigin, setup.longitudeOrigin,
|
||||
setup.falseEasting, setup.falseNorthing);
|
||||
else if (projection == "(A)Lambert Azimuthual Equal Area")
|
||||
_projection = new AzimuthalEqualArea(d.ellipsoid(), setup.latitudeOrigin,
|
||||
_projection = new LambertAzimuthal(d.ellipsoid(), setup.latitudeOrigin,
|
||||
setup.longitudeOrigin, setup.falseEasting, setup.falseNorthing);
|
||||
else if (projection == "(UTM) Universal Transverse Mercator") {
|
||||
if (setup.zone)
|
||||
|
Loading…
Reference in New Issue
Block a user