QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSVECTORTILELOADER_H
17 #define QGSVECTORTILELOADER_H
37 :
id( tileID ),
data( raw ) {}
67 const QString &sourcePath,
69 const QPointF &viewCenter,
71 const QString &authid,
78 const QString &requestUrl,
79 const QString &authid,
101 QString
error()
const;
107 void tileReplyFinished();
116 std::unique_ptr<QEventLoop> mEventLoop;
124 QList<QgsTileDownloadManagerReply *> mReplies;
130 #endif // QGSVECTORTILELOADER_H
Stores coordinates of a tile in a tile matrix set. Tile matrix is identified by the zoomLevel(),...
Range of tiles in a tile matrix to be rendered. The selection is rectangular, given by start/end row ...
Utility class for reading and writing ESRI VTPK files.
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 *.
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 loadFromMBTiles(const QgsTileXYZ &id, QgsMbTiles &mbTileReader, QgsFeedback *feedback=nullptr)
Returns raw tile data for a single tile loaded from MBTiles file.
static QList< QgsVectorTileRawData > blockingFetchTileRawData(const QString &sourceType, const QString &sourcePath, const QgsTileMatrix &tileMatrix, const QPointF &viewCenter, const QgsTileRange &range, const QString &authid, const QgsHttpHeaders &headers, QgsFeedback *feedback=nullptr)
Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched...
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.
QString error() const
Returns a eventual error that occurred during loading, void if no error.
The loader class takes care of loading raw vector tile data from a tile source.
Keeps track of raw tile data that need to be decoded.
static QByteArray loadFromNetwork(const QgsTileXYZ &id, const QgsTileMatrix &tileMatrix, const QString &requestUrl, const QString &authid, const QgsHttpHeaders &headers, QgsFeedback *feedback=nullptr)
Returns raw tile data for a single tile, doing a HTTP request. Block the caller until tile data are d...
QgsTileXYZ id
Tile position in tile matrix set.
static QByteArray loadFromVtpk(const QgsTileXYZ &id, QgsVtpkTiles &vtpkTileReader)
Returns raw tile data for a single tile loaded from VTPK file.
QgsVectorTileLoader(const QString &uri, const QgsTileMatrix &tileMatrix, const QgsTileRange &range, const QPointF &viewCenter, const QString &authid, const QgsHttpHeaders &headers, QgsFeedback *feedback)
Constructs tile loader for doing asynchronous requests and starts network requests.
Reply object for tile download manager requests returned from calls to QgsTileDownloadManager::get().
QByteArray data
Raw tile data.