Class: QgsDoubleRange

QgsRange which stores a range of double values.

See also

QgsIntRange

See also

QgsDateRange

See also

QgsDateTimeRange

Class Hierarchy

Inheritance diagram of qgis.core.QgsDoubleRange

Base classes

QgsRangedoubleBase

A template based class for storing ranges (lower to upper values).

Methods

isInfinite

Returns True if the range consists of all possible values.

class qgis.core.QgsDoubleRange[source]

Bases: QgsRangedoubleBase

__init__(lower: float, upper: float, limits: Qgis.RangeLimits)

Constructor for QgsDoubleRange. The lower and upper bounds are specified, and whether or not these bounds are included in the range.

Added in version 3.38.

Parameters:
__init__(lower: float, upper: float, includeLower: bool = True, includeUpper: bool = True)

Constructor for QgsDoubleRange. The lower and upper bounds are specified, and optionally whether or not these bounds are included in the range.

Parameters:
  • lower (float)

  • upper (float)

  • includeLower (bool = True)

  • includeUpper (bool = True)

__init__()

Constructor for QgsDoubleRange containing an infinite range (see isInfinite()).

Added in version 3.18.

__init__(a0: QgsDoubleRange)
Parameters:

a0 (QgsDoubleRange)

isInfinite(self) bool[source]

Returns True if the range consists of all possible values.

Added in version 3.18.

Return type:

bool