mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
24 lines
462 B
C++
24 lines
462 B
C++
#ifndef UTM_H
|
|
#define UTM_H
|
|
|
|
#include "projection.h"
|
|
#include "transversemercator.h"
|
|
|
|
class UTM : public Projection
|
|
{
|
|
public:
|
|
UTM(int zone) : _tm((qAbs(zone) - 1)*6 - 180 + 3, 0.9996, 500000,
|
|
zone < 0 ? 10000000 : 0) {}
|
|
UTM(const Coordinates &c);
|
|
|
|
virtual QPointF ll2xy(const Coordinates &c) const
|
|
{return _tm.ll2xy(c);}
|
|
virtual Coordinates xy2ll(const QPointF &p) const
|
|
{return _tm.xy2ll(p);}
|
|
|
|
private:
|
|
TransverseMercator _tm;
|
|
};
|
|
|
|
#endif // UTM_H
|