QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsvectortileloader.h>
Signals | |
void | tileRequestFinished (const QgsVectorTileRawData &rawTile) |
Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte array is empty. More... | |
Public Member Functions | |
QgsVectorTileLoader (const QString &uri, const QgsTileMatrix &tileMatrix, const QgsTileRange &range, const QPointF &viewCenter, QgsFeedback *feedback) | |
Constructs tile loader for doing asynchronous requests and starts network requests. More... | |
~QgsVectorTileLoader () | |
void | downloadBlocking () |
Blocks the caller until all asynchronous requests are finished (with a success or a failure) More... | |
Static Public Member Functions | |
static QList< QgsVectorTileRawData > | blockingFetchTileRawData (const QString &sourceType, const QString &sourcePath, const QgsTileMatrix &tileMatrix, const QPointF &viewCenter, const QgsTileRange &range) |
Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched. More... | |
static QByteArray | loadFromMBTiles (const QgsTileXYZ &id, QgsMbTiles &mbTileReader) |
Returns raw tile data for a single tile loaded from MBTiles file. More... | |
static QByteArray | loadFromNetwork (const QgsTileXYZ &id, const QgsTileMatrix &tileMatrix, const QString &requestUrl) |
Returns raw tile data for a single tile, doing a HTTP request. Block the caller until tile data are downloaded. More... | |
The loader class takes care of loading raw vector tile data from a tile source.
Definition at line 56 of file qgsvectortileloader.h.
QgsVectorTileLoader::QgsVectorTileLoader | ( | const QString & | uri, |
const QgsTileMatrix & | tileMatrix, | ||
const QgsTileRange & | range, | ||
const QPointF & | viewCenter, | ||
QgsFeedback * | feedback | ||
) |
Constructs tile loader for doing asynchronous requests and starts network requests.
Definition at line 26 of file qgsvectortileloader.cpp.
QgsVectorTileLoader::~QgsVectorTileLoader | ( | ) |
Definition at line 49 of file qgsvectortileloader.cpp.
|
static |
Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched.
Definition at line 146 of file qgsvectortileloader.cpp.
void QgsVectorTileLoader::downloadBlocking | ( | ) |
Blocks the caller until all asynchronous requests are finished (with a success or a failure)
Definition at line 61 of file qgsvectortileloader.cpp.
|
static |
Returns raw tile data for a single tile loaded from MBTiles file.
Definition at line 190 of file qgsvectortileloader.cpp.
|
static |
Returns raw tile data for a single tile, doing a HTTP request. Block the caller until tile data are downloaded.
Definition at line 171 of file qgsvectortileloader.cpp.
|
signal |
Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte array is empty.