dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
lks94projection.h
Go to the documentation of this file.
1 
13 /*
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * for more details.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, see <http://www.gnu.org/licenses/>
26 */
27 #ifndef LKS94PROJECTION_H
28 #define LKS94PROJECTION_H
29 #include <QVector>
30 #include "cmath"
31 #include "../pureprojection.h"
32 
33 
34 namespace projections {
36 {
37 public:
39  double GetTileMatrixResolution(int const& zoom);
40  virtual QString Type(){return "LKS94Projection";}
41  virtual Size TileSize() const;
42  virtual double Axis() const;
43  virtual double Flattening() const;
44  virtual core::Point FromLatLngToPixel(double lat, double lng, int const& zoom);
45  virtual internals::PointLatLng FromPixelToLatLng(const qint64 &x,const qint64 &y,const int &zoom);
46  virtual double GetGroundResolution(int const& zoom, double const& latitude);
47  virtual Size GetTileMatrixMinXY(int const& zoom);
48  virtual Size GetTileMatrixMaxXY(int const& zoom);
49 
50 private:
51  const double MinLatitude;
52  const double MaxLatitude;
53  const double MinLongitude;
54  const double MaxLongitude;
55  const double orignX;
56  const double orignY;
57  Size tileSize;
58  QVector <double> DTM10(const QVector <double>& lonlat);
59  QVector <double> MTD10(QVector <double>& pnt);
60  QVector <double> DTM00(QVector <double>& lonlat);
61  QVector <double> DTM01(QVector <double>& lonlat);
62  QVector <double> MTD01(QVector <double>& pnt);
63  QVector <double> MTD11(QVector <double>& p);
64 };
65 
66 }
67 #endif // LKS94PROJECTION_H
68 
69 
70 
71 
virtual Size TileSize() const
virtual double Axis() const
virtual double GetGroundResolution(int const &zoom, double const &latitude)
PureProjection::GetGroundResolution Returns the conversion from pixels to meters. ...
virtual Size GetTileMatrixMinXY(int const &zoom)
double GetTileMatrixResolution(int const &zoom)
virtual Size GetTileMatrixMaxXY(int const &zoom)
virtual core::Point FromLatLngToPixel(double lat, double lng, int const &zoom)
virtual internals::PointLatLng FromPixelToLatLng(const qint64 &x, const qint64 &y, const int &zoom)
x
Definition: OPPlots.m:100
virtual double Flattening() const
y
Definition: OPPlots.m:101