QgsTilingScheme class
3 The class encapsulates tiling scheme (just like with WMTS / TMS / XYZ layers).
Contents
The origin (tile [0,0]) is in bottom-left corner.
Constructors, destructors, conversion operators
- QgsTilingScheme() defaulted
- Creates invalid tiling scheme.
- 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.
Public functions
- auto crs() const -> QgsCoordinateReferenceSystem
- Returns CRS of the tiling scheme.
- void extentToTile(const QgsRectangle& extent, int& x, int& y, int& z) const
- Returns coordinates of a tile that most tightly fits the whole extent.
- void mapToTile(const QgsPointXY& pt, int z, float& x, float& y) const
- Returns tile coordinates for given map coordinates and Z level.
- auto tileToExtent(int x, int y, int z) const -> QgsRectangle
- Returns map coordinates of the extent of a tile.
- auto tileToMap(int x, int y, int z) const -> QgsPointXY
- Returns map coordinates at tile coordinates (for lower-left corner of the tile)