QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | List of all members
QgsTileXYZ Class Reference

Stores coordinates of a tile in a tile matrix set. More...

#include <qgstiles.h>

Public Member Functions

 QgsTileXYZ (int tc=-1, int tr=-1, int tz=-1)
 Constructs a tile identifier from given column, row and zoom level indices. More...
 
int column () const
 Returns tile's column index (X) More...
 
int row () const
 Returns tile's row index (Y) More...
 
QString toString () const
 Returns tile coordinates in a formatted string. More...
 
int zoomLevel () const
 Returns tile's zoom level (Z) More...
 

Detailed Description

Stores coordinates of a tile in a tile matrix set.

Tile matrix is identified by the zoomLevel(), and the position within tile matrix is given by column() and row().

Since
QGIS 3.14

Definition at line 32 of file qgstiles.h.

Constructor & Destructor Documentation

◆ QgsTileXYZ()

QgsTileXYZ::QgsTileXYZ ( int  tc = -1,
int  tr = -1,
int  tz = -1 
)
inline

Constructs a tile identifier from given column, row and zoom level indices.

Definition at line 36 of file qgstiles.h.

Member Function Documentation

◆ column()

int QgsTileXYZ::column ( ) const
inline

Returns tile's column index (X)

Definition at line 42 of file qgstiles.h.

◆ row()

int QgsTileXYZ::row ( ) const
inline

Returns tile's row index (Y)

Definition at line 44 of file qgstiles.h.

◆ toString()

QString QgsTileXYZ::toString ( ) const
inline

Returns tile coordinates in a formatted string.

Definition at line 49 of file qgstiles.h.

◆ zoomLevel()

int QgsTileXYZ::zoomLevel ( ) const
inline

Returns tile's zoom level (Z)

Definition at line 46 of file qgstiles.h.


The documentation for this class was generated from the following file: