16#ifndef QGSXYZVECTORTILEDATAPROVIDER_H
17#define QGSXYZVECTORTILEDATAPROVIDER_H
34 QgsXyzVectorTileDataProviderBase(
const QString &uri,
36 QgsDataProvider::ReadFlags flags );
37 QgsXyzVectorTileDataProviderBase(
const QgsXyzVectorTileDataProviderBase &other );
42 QgsXyzVectorTileDataProviderBase &
operator=(
const QgsXyzVectorTileDataProviderBase &other ) =
delete;
57 static QByteArray loadFromNetwork(
const QgsTileXYZ &
id,
59 const QString &requestUrl,
60 const QString &authid,
67class CORE_EXPORT QgsXyzVectorTileDataProvider :
public QgsXyzVectorTileDataProviderBase
72 QgsXyzVectorTileDataProvider(
const QString &uri,
74 QgsDataProvider::ReadFlags flags );
75 QgsXyzVectorTileDataProvider(
const QgsXyzVectorTileDataProvider &other );
80 QgsXyzVectorTileDataProvider &
operator=(
const QgsXyzVectorTileDataProvider &other ) =
delete;
82 QString
name()
const override;
91 static QString XYZ_DATA_PROVIDER_KEY;
92 static QString XYZ_DATA_PROVIDER_DESCRIPTION;
96 bool mIsValid =
false;
103 static QByteArray loadFromNetwork(
const QgsTileXYZ &
id,
105 const QString &requestUrl,
106 const QString &authid,
117 QgsXyzVectorTileDataProviderMetadata();
119 QIcon
icon()
const override;
121 QVariantMap
decodeUri(
const QString &uri )
const override;
122 QString
encodeUri(
const QVariantMap &parts )
const override;
RendererUsage
Usage of the renderer.
@ Unknown
Renderer used for unknown usage.
This class represents a coordinate reference system (CRS).
virtual QString name() const =0
Returns a provider name.
virtual QgsCoordinateReferenceSystem crs() const =0
Returns the coordinate system for the data source.
virtual bool isValid() const =0
Returns true if this is a valid layer.
virtual QString description() const =0
Returns description.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
The class is used as a container of context for various read/write operations on other objects.
A rectangle specified with double values.
Defines a set of tile matrices for multiple zoom levels.
Defines a matrix of tiles for a single zoom level: it is defined by its size (width *.
Stores coordinates of a tile in a tile matrix set.
Base class for vector tile layer data providers.
virtual QString sourcePath() const =0
Returns the source path for the data.
virtual QgsVectorTileDataProvider * clone() const =0
Returns a clone of the data provider.
virtual QList< QgsVectorTileRawData > readTiles(const QgsTileMatrixSet &tileMatrixSet, const QVector< QgsTileXYZ > &tiles, QgsFeedback *feedback=nullptr, Qgis::RendererUsage usage=Qgis::RendererUsage::Unknown) const =0
Returns raw tile data for a range of tiles.
QgsRectangle extent() const override
Returns the extent of the layer.
QgsVectorTileDataProvider & operator=(const QgsVectorTileDataProvider &other)=delete
QgsVectorTileDataProvider cannot be assigned.
virtual const QgsVectorTileMatrixSet & tileMatrixSet() const =0
Returns the tile matrix set associated with the provider.
virtual QgsVectorTileRawData readTile(const QgsTileMatrixSet &tileMatrixSet, const QgsTileXYZ &id, QgsFeedback *feedback=nullptr) const =0
Returns raw tile data for a single tile.
virtual QNetworkRequest tileRequest(const QgsTileMatrixSet &tileMatrixSet, const QgsTileXYZ &id, Qgis::RendererUsage usage) const
Returns a network request for a tile.
virtual bool supportsAsync() const
Returns true if the provider supports async tile reading.
Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.
Keeps track of raw tile data that need to be decoded.
Setting options for creating vector data providers.