Class: QgsTileRange¶
A range of tiles in a tile matrix.
The selection is rectangular, given by start/end row and column numbers.
Added in version 3.14.
Methods
Returns the total number of tiles in the range. |
|
Returns index of the last column in the range |
|
Returns index of the last row in the range |
|
Returns whether the range is valid (when all row/column numbers are not negative) |
|
Returns index of the first column in the range |
|
Returns index of the first row in the range |
- class qgis.core.QgsTileRange[source]¶
Bases:
object
- __init__(c1: int = -1, c2: int = -1, r1: int = -1, r2: int = -1)
Constructs a range of tiles from given span of columns and rows
- Parameters:
c1 (int = -1)
c2 (int = -1)
r1 (int = -1)
r2 (int = -1)
- __init__(a0: QgsTileRange)
- Parameters:
a0 (QgsTileRange)
- count(self) int [source]¶
Returns the total number of tiles in the range.
Added in version 3.44.
- Return type:
int