QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSVECTORTILELOADER_H
17 #define QGSVECTORTILELOADER_H
36 :
id( tileID ),
data( raw ) {}
63 const QString &sourcePath,
65 const QPointF &viewCenter,
67 const QString &authid,
68 const QString &referer );
73 const QString &requestUrl,
74 const QString &authid,
75 const QString &referer );
85 const QString &authid,
const QString &referer,
QgsFeedback *feedback );
95 void tileReplyFinished();
104 std::unique_ptr<QEventLoop> mEventLoop;
112 QList<QNetworkReply *> mReplies;
116 #endif // QGSVECTORTILELOADER_H
Stores coordinates of a tile in a tile matrix set.
Range of tiles in a tile matrix to be rendered.
static QList< QgsVectorTileRawData > blockingFetchTileRawData(const QString &sourceType, const QString &sourcePath, const QgsTileMatrix &tileMatrix, const QPointF &viewCenter, const QgsTileRange &range, const QString &authid, const QString &referer)
Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched...
void downloadBlocking()
Blocks the caller until all asynchronous requests are finished (with a success or a failure)
Defines a matrix of tiles for a single zoom level: it is defined by its size (width * height) and map...
Utility class for reading and writing MBTiles files (which are SQLite3 databases).
void tileRequestFinished(const QgsVectorTileRawData &rawTile)
Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte ar...
static QByteArray loadFromNetwork(const QgsTileXYZ &id, const QgsTileMatrix &tileMatrix, const QString &requestUrl, const QString &authid, const QString &referer)
Returns raw tile data for a single tile, doing a HTTP request. Block the caller until tile data are d...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
QgsVectorTileRawData(QgsTileXYZ tileID=QgsTileXYZ(), const QByteArray &raw=QByteArray())
Constructs a raw tile object.
The loader class takes care of loading raw vector tile data from a tile source.
static QByteArray loadFromMBTiles(const QgsTileXYZ &id, QgsMbTiles &mbTileReader)
Returns raw tile data for a single tile loaded from MBTiles file.
QgsVectorTileLoader(const QString &uri, const QgsTileMatrix &tileMatrix, const QgsTileRange &range, const QPointF &viewCenter, const QString &authid, const QString &referer, QgsFeedback *feedback)
Constructs tile loader for doing asynchronous requests and starts network requests.
Keeps track of raw tile data that need to be decoded.
QgsTileXYZ id
Tile position in tile matrix set.
QByteArray data
Raw tile data.