Class: QgsVectorDataProviderTemporalCapabilities¶
Implementation of data provider temporal properties for
QgsVectorDataProviders.
Data provider temporal capabilities reflect the temporal capabilities of
a QgsDataProvider. Unlike
QgsMapLayerTemporalProperties, these settings are not
user-configurable, and should only be set by the
QgsDataProvider itself.
Added in version 3.14.
Class Hierarchy¶
Base classes¶
Base class for handling properties relating to a data provider’s temporal capabilities. |
- class qgis.core.QgsVectorDataProviderTemporalCapabilities[source]¶
Bases:
QgsDataProviderTemporalCapabilities- __init__(enabled: bool = False)
Constructor for QgsVectorDataProviderTemporalCapabilities.
The
enabledargument specifies whether the data provider has temporal capabilities.- Parameters:
enabled (bool = False)
- __init__(a0: QgsVectorDataProviderTemporalCapabilities)
- Parameters:
- TemporalMode¶
alias of
VectorDataProviderTemporalMode
- availableTemporalRange(self) QgsDateTimeRange¶
Returns the datetime range extent from which temporal data is available from the provider.
See also
- Return type:
- endField(self) str[source]¶
Returns the name of the end datetime field, which stores the end time for the feature’s time spans.
See also
See also
- Return type:
str
- mode(self) Qgis.VectorDataProviderTemporalMode[source]¶
Returns the temporal properties mode.
See also
- Return type:
- setAvailableTemporalRange(self, range: QgsDateTimeRange)[source]¶
Sets the datetime
rangeextent from which temporal data is available from the provider.See also
- Parameters:
range (QgsDateTimeRange)
- setEndField(self, field: str | None)[source]¶
Sets the name of the end datetime
field, which stores the end time for the feature’s time spans.See also
See also
- Parameters:
field (Optional[str])
- setMode(self, mode: Qgis.VectorDataProviderTemporalMode)[source]¶
Sets the temporal properties
mode.See also
- Parameters:
- setStartField(self, field: str | None)[source]¶
Sets the name of the start datetime
field, which stores the start time for the feature’s time spans.If
mode()is ModeFeatureDateTimeInstantFromField, then this field stores both the start AND end times.See also
See also
- Parameters:
field (Optional[str])