Class: QgsRasterDataProviderTemporalCapabilities¶
- class qgis.core.QgsRasterDataProviderTemporalCapabilities(enabled: bool = False)¶
Bases:
QgsDataProviderTemporalCapabilities
Constructor for
QgsRasterDataProviderTemporalProperties
.The
enabled
argument specifies whether the data provider has temporal capabilities.QgsRasterDataProviderTemporalCapabilities(
QgsRasterDataProviderTemporalCapabilities
)Implementation of data provider temporal properties for QgsRasterDataProviders.
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 theQgsDataProvider
itself.New in version 3.14:
Methods
Returns the available reference datetime range, which indicates the maximum extent of datetime values available for reference temporal ranges from the provider.
Returns the datetime range extent from which temporal data is available from the provider.
Returns the desired method to use when resolving a temporal interval to matching layers or bands in the data provider.
Returns the requested temporal range.
Sets the available reference datetime
range
.Sets the datetime
range
extent from which temporal data is available from the provider.Sets the desired
method
to use when resolving a temporal interval to matching layers or bands in the data provider.Attributes
- FindClosestMatchToEndOfRange = 4¶
- FindClosestMatchToStartOfRange = 3¶
- class IntervalHandlingMethod¶
Bases:
int
- MatchExactUsingEndOfRange = 2¶
- MatchExactUsingStartOfRange = 1¶
- MatchUsingWholeRange = 0¶
- availableReferenceTemporalRange(self) QgsDateTimeRange ¶
Returns the available reference datetime range, which indicates the maximum extent of datetime values available for reference temporal ranges from the provider.
See also
- Return type
- availableTemporalRange(self) QgsDateTimeRange ¶
Returns the datetime range extent from which temporal data is available from the provider.
See also
- Return type
- intervalHandlingMethod(self) QgsRasterDataProviderTemporalCapabilities.IntervalHandlingMethod ¶
Returns the desired method to use when resolving a temporal interval to matching layers or bands in the data provider.
See also
- requestedTemporalRange(self) QgsDateTimeRange ¶
Returns the requested temporal range. Intended to be used by the provider in fetching data.
- Return type
- setAvailableReferenceTemporalRange(self, range: QgsDateTimeRange)¶
Sets the available reference datetime
range
. This is to be used for bi-temporal based data. Where data can have both nominal and reference times.See also
- Parameters
range (QgsDateTimeRange) –
- setAvailableTemporalRange(self, range: QgsDateTimeRange)¶
Sets the datetime
range
extent from which temporal data is available from the provider.See also
- Parameters
range (QgsDateTimeRange) –
- setIntervalHandlingMethod(self, method: QgsRasterDataProviderTemporalCapabilities.IntervalHandlingMethod)¶
Sets the desired
method
to use when resolving a temporal interval to matching layers or bands in the data provider.See also
- Parameters
method (QgsRasterDataProviderTemporalCapabilities.IntervalHandlingMethod) –