QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
3 More...
#include <qgstilingscheme.h>
Public Member Functions | |
QgsTilingScheme ()=default | |
Creates invalid tiling scheme. More... | |
QgsTilingScheme (const QgsRectangle &fullExtent, const QgsCoordinateReferenceSystem &crs) | |
Creates tiling scheme where level 0 tile is centered at the full extent and the full extent completely fits into the level 0 tile. More... | |
QgsCoordinateReferenceSystem | crs () const |
Returns CRS of the tiling scheme. More... | |
void | extentToTile (const QgsRectangle &extent, int &x, int &y, int &z) const |
Returns coordinates of a tile that most tightly fits the whole extent. More... | |
void | mapToTile (const QgsPointXY &pt, int z, float &x, float &y) const |
Returns tile coordinates for given map coordinates and Z level. More... | |
QgsRectangle | tileToExtent (const QgsChunkNodeId &nodeId) const |
Returns map coordinates of the extent of a tile. More... | |
QgsRectangle | tileToExtent (int x, int y, int z) const |
Returns map coordinates of the extent of a tile. More... | |
QgsPointXY | tileToMap (int x, int y, int z) const |
Returns map coordinates at tile coordinates (for lower-left corner of the tile) More... | |
3
The class encapsulates tiling scheme (just like with WMTS / TMS / XYZ layers).
The origin (tile [0,0]) is in bottom-left corner.
Definition at line 37 of file qgstilingscheme.h.
|
default |
Creates invalid tiling scheme.
QgsTilingScheme::QgsTilingScheme | ( | const QgsRectangle & | fullExtent, |
const QgsCoordinateReferenceSystem & | crs | ||
) |
Creates tiling scheme where level 0 tile is centered at the full extent and the full extent completely fits into the level 0 tile.
Definition at line 21 of file qgstilingscheme.cpp.
|
inline |
Returns CRS of the tiling scheme.
Definition at line 61 of file qgstilingscheme.h.
void QgsTilingScheme::extentToTile | ( | const QgsRectangle & | extent, |
int & | x, | ||
int & | y, | ||
int & | z | ||
) | const |
Returns coordinates of a tile that most tightly fits the whole extent.
Definition at line 55 of file qgstilingscheme.cpp.
void QgsTilingScheme::mapToTile | ( | const QgsPointXY & | pt, |
int | z, | ||
float & | x, | ||
float & | y | ||
) | const |
Returns tile coordinates for given map coordinates and Z level.
Definition at line 36 of file qgstilingscheme.cpp.
QgsRectangle QgsTilingScheme::tileToExtent | ( | const QgsChunkNodeId & | nodeId | ) | const |
Returns map coordinates of the extent of a tile.
Definition at line 50 of file qgstilingscheme.cpp.
QgsRectangle QgsTilingScheme::tileToExtent | ( | int | x, |
int | y, | ||
int | z | ||
) | const |
Returns map coordinates of the extent of a tile.
Definition at line 43 of file qgstilingscheme.cpp.
QgsPointXY QgsTilingScheme::tileToMap | ( | int | x, |
int | y, | ||
int | z | ||
) | const |
Returns map coordinates at tile coordinates (for lower-left corner of the tile)
Definition at line 28 of file qgstilingscheme.cpp.