QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgstilingscheme.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgstilingscheme.h
3  --------------------------------------
4  Date : July 2017
5  Copyright : (C) 2017 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSTILINGSCHEME_H
17 #define QGSTILINGSCHEME_H
18 
19 #include "qgis_3d.h"
20 
22 #include <qgspointxy.h>
23 
24 class QgsRectangle;
25 
26 #define SIP_NO_FILE
27 
35 class _3D_EXPORT QgsTilingScheme
36 {
37  public:
39  QgsTilingScheme() = default;
40 
42  QgsTilingScheme( const QgsRectangle &fullExtent, const QgsCoordinateReferenceSystem &crs );
43 
45  QgsPointXY tileToMap( int x, int y, int z ) const;
47  void mapToTile( const QgsPointXY &pt, int z, float &x, float &y ) const;
48 
50  QgsRectangle tileToExtent( int x, int y, int z ) const;
51 
53  void extentToTile( const QgsRectangle &extent, int &x, int &y, int &z ) const;
54 
56  QgsCoordinateReferenceSystem crs() const { return mCrs; }
57 
58  private:
59  QgsPointXY mMapOrigin;
60  double mBaseTileSide = 0;
62 
63 };
64 
65 #endif // QGSTILINGSCHEME_H
crs
const QgsCoordinateReferenceSystem & crs
Definition: qgswfsgetfeature.cpp:105
QgsRectangle
Definition: qgsrectangle.h:41
QgsTilingScheme::crs
QgsCoordinateReferenceSystem crs() const
Returns CRS of the tiling scheme.
Definition: qgstilingscheme.h:56
QgsCoordinateReferenceSystem
Definition: qgscoordinatereferencesystem.h:206
QgsPointXY
Definition: qgspointxy.h:43
QgsTilingScheme
Definition: qgstilingscheme.h:35
qgscoordinatereferencesystem.h
qgspointxy.h