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. |
Methods
Clears all stored reference times and dataset times |
|
Returns the last dataset with time less than or equal to timeSinceGlobalReference |
|
Returns the closest dataset index from the timeSinceGlobalReference |
|
Returns the relative time in milliseconds of the dataset |
|
Returns the duration of the first time step of the dataset group with index group |
|
Returns whether the reference time is set |
|
Returns the reference time |
|
Sets the temporal unit (temporalUnit) used to read data by the data provider |
|
Returns the temporal unit used to read data by the data provider |
|
Returns the time extent using the internal reference time and the first and last times available from the all the dataset |
Attributes
- 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
timeSinceGlobalReference
Returns invalid dataset index if
timeSinceGlobalReference
is outside the time extent of the dataset groupNote
for non temporal dataset group,
timeSinceGlobalReference
is 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
timeSinceGlobalReference
Returns invalid dataset index if
timeSinceGlobalReference
is outside the time extent of the dataset groupNote
for non temporal dataset group,
timeSinceGlobalReference
is 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
group
The 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
- Return type:
- timeExtent(self, reference: QDateTime | datetime.datetime) QgsDateTimeRange [source]
Returns the time extent using an external
reference
date time and the first and last times available from the all the dataset- Parameters:
reference (Union[QDateTime, datetime.datetime])
- Return type: