18#ifndef QGSSENSORTHINGSPROVIDER_H
19#define QGSSENSORTHINGSPROVIDER_H
39 static const inline QString SENSORTHINGS_PROVIDER_KEY = QStringLiteral(
"sensorthings" );
40 static const inline QString SENSORTHINGS_PROVIDER_DESCRIPTION = QStringLiteral(
"OGC SensorThings API data provider" );
59 bool setSubsetString(
const QString &subset,
bool updateFeatureCount =
true )
final;
63 bool isValid()
const final {
return mValid; }
65 QString
name()
const final;
69 static QString providerKey();
75 std::shared_ptr<QgsSensorThingsSharedData> mSharedData;
79 void reloadProviderData()
final;
87 QgsSensorThingsProviderMetadata();
88 QIcon
icon() const final;
90 QVariantMap decodeUri( const QString &uri ) const final;
91 QString encodeUri( const QVariantMap &parts ) const final;
92 QgsSensorThingsProvider *createProvider( const QString &uri, const
QgsDataProvider::ProviderOptions &options,
Qgis::DataProviderReadFlags flags =
Qgis::DataProviderReadFlags() ) final;
93 QList<
Qgis::LayerType > supportedLayerTypes() const final;
99 void deleteConnection( const QString &name ) final;
The Qgis class provides global constants for use throughout the application.
QFlags< DataProviderFlag > DataProviderFlags
Data provider flags.
QFlags< DataProviderReadFlag > DataProviderReadFlags
Flags which control data provider construction.
QFlags< VectorProviderCapability > VectorProviderCapabilities
Vector data provider capabilities.
WkbType
The WKB type describes the number of dimensions a geometry has.
Base class that can be used for any class that is capable of returning features.
The QgsAbstractProviderConnection provides an interface for data provider connections.
This class represents a coordinate reference system (CRS).
This is the interface for those who want to add custom data items to the browser tree.
Abstract base class for spatial data provider implementations.
virtual QString subsetString() const
Returns the subset definition string currently in use by the layer and used by the provider to limit ...
virtual QString name() const =0
Returns a provider name.
virtual Qgis::DataProviderFlags flags() const
Returns the generic data provider flags.
virtual bool supportsSubsetString() const
Returns true if the provider supports setting of subset strings.
virtual QgsCoordinateReferenceSystem crs() const =0
Returns the coordinate system for the data source.
virtual QString subsetStringHelpUrl() const
Returns a URL pointing to documentation describing the dialect which is supported for subset strings ...
virtual QgsLayerMetadata layerMetadata() const
Returns layer metadata collected from the provider's source.
virtual bool isValid() const =0
Returns true if this is a valid layer.
virtual void setDataSourceUri(const QString &uri)
Set the data source specification.
virtual bool setSubsetString(const QString &subset, bool updateFeatureCount=true)
Set the subset string used to create a subset of features in the layer.
virtual QString description() const =0
Returns description.
virtual QString subsetStringDialect() const
Returns a user-friendly string describing the dialect which is supported for subset strings by the pr...
virtual QString htmlMetadata() const
Obtain a formatted HTML string containing assorted metadata for this data provider.
virtual bool renderInPreview(const QgsDataProvider::PreviewContext &context)
Returns whether the layer must be rendered in preview jobs.
virtual QgsRectangle extent() const =0
Returns the extent of the layer.
Wrapper for iterator of features from vector data provider or vector layer.
This class wraps a request for features to a vector layer (or directly its vector data provider).
Container of fields for a vector layer.
A rectangle specified with double values.
This is the base class for vector data providers.
long long featureCount() const override=0
Number of features in the layer.
virtual QString storageType() const
Returns the permanent storage type for this layer as a friendly name.
virtual Q_INVOKABLE Qgis::VectorProviderCapabilities capabilities() const
Returns flags containing the supported capabilities.
virtual void handlePostCloneOperations(QgsVectorDataProvider *source)
Handles any post-clone operations required after this vector data provider was cloned from the source...
virtual QgsAbstractFeatureSource * featureSource() const =0
Returns feature source object that can be used for querying provider's data.
QgsFields fields() const override=0
Returns the fields associated with this data provider.
Qgis::WkbType wkbType() const override=0
Returns the geometry type which is returned by this layer.
QgsFeatureIterator getFeatures(const QgsFeatureRequest &request=QgsFeatureRequest()) const override=0
Query the provider for features specified in request.
Stores settings related to the context in which a preview job runs.
Setting options for creating vector data providers.