Class: QgsIdentifyContext

class qgis.core.QgsIdentifyContext

Bases: sip.wrapper

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

New in version 3.16.1.

QgsIdentifyContext() Constructor for QgsIdentifyContext

QgsIdentifyContext(QgsIdentifyContext)

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.

isTemporal(self) bool

Returns True if the temporal range setting is enabled.

Return type:

bool

setTemporalRange(self, range: QgsDateTimeRange)

Set datetime range to be used with the identify action.

See also

temporalRange()

See also

isTemporal()

Parameters:

range (QgsDateTimeRange) –

setZRange(self, range: QgsDoubleRange)

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()

New 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

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

See also

setZRange()

New in version 3.38.

Return type:

QgsDoubleRange