map2d_widget
lks94projection.h
Go to the documentation of this file.
1 
12 /*
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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(int const& x, int const& y, int const& 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  double Clip(double const& n, double const& minValue, double const& maxValue);
65 };
66 
67 }
68 #endif // LKS94PROJECTION_H
69 
70 
71 
72 
virtual double GetGroundResolution(int const &zoom, double const &latitude)
Definition: lks94projection.cpp:617
double GetTileMatrixResolution(int const &zoom)
Definition: lks94projection.cpp:535
virtual core::Point FromLatLngToPixel(double lat, double lng, int const &zoom)
Definition: lks94projection.cpp:52
Definition: size.h:35
Definition: pointlatlng.h:35
Definition: point.h:35
virtual double Axis() const
Definition: lks94projection.cpp:41
virtual Size TileSize() const
Definition: lks94projection.cpp:37
virtual Size GetTileMatrixMinXY(int const &zoom)
Definition: lks94projection.cpp:623
LKS94Projection()
Definition: lks94projection.cpp:32
Definition: lks94projection.cpp:31
virtual Size GetTileMatrixMaxXY(int const &zoom)
Definition: lks94projection.cpp:706
Definition: lks94projection.h:35
Definition: pureprojection.h:42
virtual double Flattening() const
Definition: lks94projection.cpp:45
virtual QString Type()
Definition: lks94projection.h:40
virtual internals::PointLatLng FromPixelToLatLng(int const &x, int const &y, int const &zoom)
Definition: lks94projection.cpp:73