Class: QgsRasterLayerTemporalProperties¶
- class qgis.core.QgsRasterLayerTemporalProperties¶
Bases:
QgsMapLayerTemporalProperties
Implementation of map layer temporal properties for raster layers.
Added in version 3.14.
QgsRasterLayerTemporalProperties(parent: Optional[QObject] = None, enabled: bool = False) Constructor for
QgsRasterLayerTemporalProperties
, with the specifiedparent
object.The
enabled
argument specifies whether the temporal properties are initially enabled or not (seeisActive()
).Enums
alias of
RasterTemporalMode
Methods
- param layer:
Returns the fixed temporal range for the layer.
Returns flags associated to the temporal property.
Returns the desired method to use when resolving a temporal interval to matching layers or bands in the data provider.
- param range:
Returns the temporal properties mode.
- param element:
- param capabilities:
Sets a temporal
range
to apply to the whole layer.Sets the desired
method
to use when resolving a temporal interval to matching layers or bands in the data provider.Sets the temporal properties
mode
.- param element:
- TemporalMode¶
alias of
RasterTemporalMode
- allTemporalRanges(self, layer: QgsMapLayer | None) List[QgsDateTimeRange] ¶
- Parameters:
layer (Optional[QgsMapLayer])
- Return type:
List[QgsDateTimeRange]
- childEvent(self, a0: QChildEvent | None)¶
- connectNotify(self, signal: QMetaMethod)¶
- customEvent(self, a0: QEvent | None)¶
- disconnectNotify(self, signal: QMetaMethod)¶
- fixedTemporalRange(self) QgsDateTimeRange ¶
Returns the fixed temporal range for the layer.
Warning
To be used only when
mode()
is QgsRasterLayerTemporalProperties.ModeFixedTemporalRangeSee also
- Return type:
- flags(self) QgsTemporalProperty.Flags ¶
Returns flags associated to the temporal property.
- Return type:
- intervalHandlingMethod(self) Qgis.TemporalIntervalMatchMethod ¶
Returns the desired method to use when resolving a temporal interval to matching layers or bands in the data provider.
See also
- Return type:
- isSignalConnected(self, signal: QMetaMethod) bool ¶
- isVisibleInTemporalRange(self, range: QgsDateTimeRange) bool ¶
- Parameters:
range (QgsDateTimeRange)
- Return type:
bool
- mode(self) Qgis.RasterTemporalMode ¶
Returns the temporal properties mode.
See also
- Return type:
- readXml(self, element: QDomElement, context: QgsReadWriteContext) bool ¶
- Parameters:
element (QDomElement)
context (QgsReadWriteContext)
- Return type:
bool
- receivers(self, signal: PYQT_SIGNAL) int ¶
- sender(self) QObject | None ¶
- senderSignalIndex(self) int ¶
- setDefaultsFromDataProviderTemporalCapabilities(self, capabilities: QgsDataProviderTemporalCapabilities | None)¶
- Parameters:
capabilities (Optional[QgsDataProviderTemporalCapabilities])
- setFixedTemporalRange(self, range: QgsDateTimeRange)¶
Sets a temporal
range
to apply to the whole layer. All bands from the raster layer will be rendered whenever the current datetime range of a render context intersects the specifiedrange
.Warning
This setting is only effective when
mode()
is QgsRasterLayerTemporalProperties.ModeFixedTemporalRangeSee also
- Parameters:
range (QgsDateTimeRange)
- setIntervalHandlingMethod(self, method: Qgis.TemporalIntervalMatchMethod)¶
Sets the desired
method
to use when resolving a temporal interval to matching layers or bands in the data provider.See also
- Parameters:
method (Qgis.TemporalIntervalMatchMethod)
- setMode(self, mode: Qgis.RasterTemporalMode)¶
Sets the temporal properties
mode
.See also
- Parameters:
mode (Qgis.RasterTemporalMode)
- timerEvent(self, a0: QTimerEvent | None)¶
- writeXml(self, element: QDomElement, doc: QDomDocument, context: QgsReadWriteContext) QDomElement ¶
- Parameters:
element (QDomElement)
doc (QDomDocument)
context (QgsReadWriteContext)
- Return type:
QDomElement