QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Implementation of data provider temporal properties for QgsRasterDataProviders. More...
#include <qgsrasterdataprovidertemporalcapabilities.h>
Public Member Functions | |
QgsRasterDataProviderTemporalCapabilities (bool enabled=false) | |
Constructor for QgsRasterDataProviderTemporalProperties. More... | |
QList< QgsDateTimeRange > | allAvailableTemporalRanges () const |
Returns a list of all valid datetime ranges for which temporal data is available from the provider. More... | |
const QgsDateTimeRange & | availableReferenceTemporalRange () const |
Returns the available reference datetime range, which indicates the maximum extent of datetime values available for reference temporal ranges from the provider. More... | |
const QgsDateTimeRange & | availableTemporalRange () const |
Returns the overall datetime range extent from which temporal data is available from the provider. More... | |
QgsInterval | defaultInterval () const |
Returns the default time step interval corresponding to the available datetime values for the provider. More... | |
Qgis::TemporalIntervalMatchMethod | intervalHandlingMethod () const |
Returns the desired method to use when resolving a temporal interval to matching layers or bands in the data provider. More... | |
const QgsDateTimeRange & | requestedTemporalRange () const |
Returns the requested temporal range. More... | |
void | setAllAvailableTemporalRanges (const QList< QgsDateTimeRange > &ranges) |
Sets a list of all valid datetime ranges for which temporal data is available from the provider. More... | |
void | setAvailableReferenceTemporalRange (const QgsDateTimeRange &range) |
Sets the available reference datetime range. More... | |
void | setAvailableTemporalRange (const QgsDateTimeRange &range) |
Sets the overall datetime range extent from which temporal data is available from the provider. More... | |
void | setDefaultInterval (const QgsInterval &interval) |
Sets the default time step interval corresponding to the available datetime values for the provider. More... | |
void | setIntervalHandlingMethod (Qgis::TemporalIntervalMatchMethod method) |
Sets the desired method to use when resolving a temporal interval to matching layers or bands in the data provider. More... | |
void | setRequestedTemporalRange (const QgsDateTimeRange &range) |
Sets the requested temporal range to retrieve when returning data from the associated data provider. More... | |
Public Member Functions inherited from QgsDataProviderTemporalCapabilities | |
QgsDataProviderTemporalCapabilities (bool available=false) | |
Constructor for QgsDataProviderTemporalCapabilities. More... | |
virtual | ~QgsDataProviderTemporalCapabilities ()=default |
bool | hasTemporalCapabilities () const |
Returns true if the provider has temporal capabilities available. More... | |
void | setHasTemporalCapabilities (bool available) |
Sets whether the provider has temporal capabilities available. More... | |
Friends | |
class | QgsRasterLayerRenderer |
class | TestQgsRasterDataProviderTemporalCapabilities |
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 the QgsDataProvider itself.
Definition at line 38 of file qgsrasterdataprovidertemporalcapabilities.h.
QgsRasterDataProviderTemporalCapabilities::QgsRasterDataProviderTemporalCapabilities | ( | bool | enabled = false | ) |
Constructor for QgsRasterDataProviderTemporalProperties.
The enabled argument specifies whether the data provider has temporal capabilities.
Definition at line 20 of file qgsrasterdataprovidertemporalcapabilities.cpp.
QList< QgsDateTimeRange > QgsRasterDataProviderTemporalCapabilities::allAvailableTemporalRanges | ( | ) | const |
Returns a list of all valid datetime ranges for which temporal data is available from the provider.
As opposed to availableTemporalRange(), this method is useful when a provider contains a set of non-contiguous datetime ranges.
Definition at line 43 of file qgsrasterdataprovidertemporalcapabilities.cpp.
const QgsDateTimeRange & QgsRasterDataProviderTemporalCapabilities::availableReferenceTemporalRange | ( | ) | const |
Returns the available reference datetime range, which indicates the maximum extent of datetime values available for reference temporal ranges from the provider.
Definition at line 56 of file qgsrasterdataprovidertemporalcapabilities.cpp.
const QgsDateTimeRange & QgsRasterDataProviderTemporalCapabilities::availableTemporalRange | ( | ) | const |
Returns the overall datetime range extent from which temporal data is available from the provider.
Definition at line 33 of file qgsrasterdataprovidertemporalcapabilities.cpp.
QgsInterval QgsRasterDataProviderTemporalCapabilities::defaultInterval | ( | ) | const |
Returns the default time step interval corresponding to the available datetime values for the provider.
Definition at line 66 of file qgsrasterdataprovidertemporalcapabilities.cpp.
Qgis::TemporalIntervalMatchMethod QgsRasterDataProviderTemporalCapabilities::intervalHandlingMethod | ( | ) | const |
Returns the desired method to use when resolving a temporal interval to matching layers or bands in the data provider.
Definition at line 81 of file qgsrasterdataprovidertemporalcapabilities.cpp.
const QgsDateTimeRange & QgsRasterDataProviderTemporalCapabilities::requestedTemporalRange | ( | ) | const |
Returns the requested temporal range.
Intended to be used by the provider in fetching data.
Definition at line 76 of file qgsrasterdataprovidertemporalcapabilities.cpp.
void QgsRasterDataProviderTemporalCapabilities::setAllAvailableTemporalRanges | ( | const QList< QgsDateTimeRange > & | ranges | ) |
Sets a list of all valid datetime ranges for which temporal data is available from the provider.
As opposed to setAvailableTemporalRange(), this method is useful when a provider contains a set of non-contiguous datetime ranges.
Definition at line 38 of file qgsrasterdataprovidertemporalcapabilities.cpp.
void QgsRasterDataProviderTemporalCapabilities::setAvailableReferenceTemporalRange | ( | const QgsDateTimeRange & | range | ) |
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.
Definition at line 48 of file qgsrasterdataprovidertemporalcapabilities.cpp.
void QgsRasterDataProviderTemporalCapabilities::setAvailableTemporalRange | ( | const QgsDateTimeRange & | range | ) |
Sets the overall datetime range extent from which temporal data is available from the provider.
Definition at line 25 of file qgsrasterdataprovidertemporalcapabilities.cpp.
void QgsRasterDataProviderTemporalCapabilities::setDefaultInterval | ( | const QgsInterval & | interval | ) |
Sets the default time step interval corresponding to the available datetime values for the provider.
Definition at line 71 of file qgsrasterdataprovidertemporalcapabilities.cpp.
void QgsRasterDataProviderTemporalCapabilities::setIntervalHandlingMethod | ( | Qgis::TemporalIntervalMatchMethod | method | ) |
Sets the desired method to use when resolving a temporal interval to matching layers or bands in the data provider.
Definition at line 86 of file qgsrasterdataprovidertemporalcapabilities.cpp.
void QgsRasterDataProviderTemporalCapabilities::setRequestedTemporalRange | ( | const QgsDateTimeRange & | range | ) |
Sets the requested temporal range to retrieve when returning data from the associated data provider.
Definition at line 61 of file qgsrasterdataprovidertemporalcapabilities.cpp.
|
friend |
Definition at line 186 of file qgsrasterdataprovidertemporalcapabilities.h.
|
friend |
Definition at line 187 of file qgsrasterdataprovidertemporalcapabilities.h.