Class: QgsIdentifyContext

Identify contexts are used to encapsulate the settings to be used to perform an identify action.

Added in version 3.16.1.

Methods

isTemporal

Returns True if the temporal range setting is enabled.

setTemporalRange

Set datetime range to be used with the identify action.

setZRange

Sets the range of z-values to identify within.

temporalRange

Returns the datetime range to be used with the identify action.

zRange

Returns the range of z-values to identify within, or an infinite range if no filtering by z should be applied.

class qgis.core.QgsIdentifyContext[source]

Bases: object

isTemporal(self) bool[source]

Returns True if the temporal range setting is enabled.

Return type:

bool

setTemporalRange(self, range: QgsDateTimeRange)[source]

Set datetime range to be used with the identify action.

See also

temporalRange()

See also

isTemporal()

Parameters:

range (QgsDateTimeRange)

setZRange(self, range: QgsDoubleRange)[source]

Sets the range of z-values to identify within.

Set to an infinite range if no filtering by z should be applied.

See also

zRange()

Added in version 3.38.

Parameters:

range (QgsDoubleRange)

temporalRange(self) QgsDateTimeRange

Returns the datetime range to be used with the identify action.

See also

isTemporal()

Return type:

QgsDateTimeRange

zRange(self) QgsDoubleRange[source]

Returns the range of z-values to identify within, or an infinite range if no filtering by z should be applied.

See also

setZRange()

Added in version 3.38.

Return type:

QgsDoubleRange