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.

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

endColumn(self) int[source]

Returns index of the last column in the range

Return type:

int

endRow(self) int[source]

Returns index of the last row in the range

Return type:

int

isValid(self) bool[source]

Returns whether the range is valid (when all row/column numbers are not negative)

Return type:

bool

startColumn(self) int[source]

Returns index of the first column in the range

Return type:

int

startRow(self) int[source]

Returns index of the first row in the range

Return type:

int