Class: QgsMeshDataProviderTemporalCapabilities¶
Handles properties relating to a mesh data provider’s temporal capabilities.
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.QgsMeshDataProviderTemporalCapabilities[source]¶
Bases:
QgsDataProviderTemporalCapabilities- __init__()
Constructor for QgsMeshDataProviderTemporalCapabilities
- __init__(a0: QgsMeshDataProviderTemporalCapabilities)
- Parameters:
- FindClosestDatasetBeforeStartRangeTime = 0¶
- FindClosestDatasetFromStartRangeTime = 1¶
- class MatchingTemporalDatasetMethod¶
Bases:
int
- datasetIndexClosestBeforeRelativeTime(self, group: int, timeSinceGlobalReference: int) QgsMeshDatasetIndex[source]¶
Returns the last dataset with time less than or equal to
timeSinceGlobalReferenceReturns invalid dataset index if
timeSinceGlobalReferenceis outside the time extent of the dataset groupNote
for non temporal dataset group,
timeSinceGlobalReferenceis not used and the unique dataset is returned- Parameters:
group (int)
timeSinceGlobalReference (int)
- Return type:
- datasetIndexClosestFromRelativeTime(self, group: int, timeSinceGlobalReference: int) QgsMeshDatasetIndex[source]¶
Returns the closest dataset index from the
timeSinceGlobalReferenceReturns invalid dataset index if
timeSinceGlobalReferenceis outside the time extent of the dataset groupNote
for non temporal dataset group,
timeSinceGlobalReferenceis not used and the unique dataset is returned- Parameters:
group (int)
timeSinceGlobalReference (int)
- Return type:
- datasetTime(self, index: QgsMeshDatasetIndex) int[source]¶
Returns the relative time in milliseconds of the dataset
- Parameters:
index (QgsMeshDatasetIndex)
- Return type:
int
- firstTimeStepDuration(self, group: int) int[source]¶
Returns the duration of the first time step of the dataset group with index
groupThe value is -1 if the dataset group is not present or if it contains only one dataset (non temporal dataset)
- Parameters:
group (int)
- Return type:
int
- setTemporalUnit(self, temporalUnit: Qgis.TemporalUnit)[source]¶
Sets the temporal unit (
temporalUnit) used to read data by the data providerTemporal units supported are milliseconds, seconds, minutes, hors, days and weeks
- Parameters:
temporalUnit (Qgis.TemporalUnit)
- temporalUnit(self) Qgis.TemporalUnit[source]¶
Returns the temporal unit used to read data by the data provider
- Return type:
- timeExtent(self) QgsDateTimeRange[source]¶
Returns the time extent using the internal reference time and the first and last times available from the all the dataset
timeExtent(self, reference: Union[QDateTime, datetime.datetime]) -> QgsDateTimeRange Returns the time extent using an external
referencedate time and the first and last times available from the all the dataset- Return type: