Class: QgsTileMatrix¶
- class qgis.core.QgsTileMatrix¶
Bases:
sip.wrapper
Defines a matrix of tiles for a single zoom level: it is defined by its size (width * brief height) and map extent that it covers.
Please note that we follow the XYZ convention of X/Y axes, i.e. top-left tile has [0,0] coordinate (which is different from TMS convention where bottom-left tile has [0,0] coordinate).
Methods
Returns extent of the tile matrix
Returns a tile matrix for the usual web mercator
Returns row/column coordinates (floating point number) from the given point in map coordinates
Returns number of rows of the tile matrix
Returns number of columns of the tile matrix
Returns scale denominator of the tile matrix
Returns center of the given tile in this matrix
Returns extent of the given tile in this matrix
Returns tile range that fully covers the given extent
Returns zoom level of the tile matrix
- extent(self) → QgsRectangle¶
Returns extent of the tile matrix
- Return type
- fromWebMercator(mZoomLevel: int) → QgsTileMatrix¶
Returns a tile matrix for the usual web mercator
- Parameters
mZoomLevel (int) –
- Return type
- mapToTileCoordinates(self, mapPoint: QgsPointXY) → QPointF¶
Returns row/column coordinates (floating point number) from the given point in map coordinates
- Parameters
mapPoint (QgsPointXY) –
- Return type
QPointF
- matrixHeight(self) → int¶
Returns number of rows of the tile matrix
- Return type
int
- matrixWidth(self) → int¶
Returns number of columns of the tile matrix
- Return type
int
- scale(self) → float¶
Returns scale denominator of the tile matrix
- Return type
float
- tileCenter(self, id: QgsTileXYZ) → QgsPointXY¶
Returns center of the given tile in this matrix
- Parameters
id (QgsTileXYZ) –
- Return type
- tileExtent(self, id: QgsTileXYZ) → QgsRectangle¶
Returns extent of the given tile in this matrix
- Parameters
id (QgsTileXYZ) –
- Return type
- tileRangeFromExtent(self, mExtent: QgsRectangle) → QgsTileRange¶
Returns tile range that fully covers the given extent
- Parameters
mExtent (QgsRectangle) –
- Return type
- zoomLevel(self) → int¶
Returns zoom level of the tile matrix
- Return type
int