QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Signals | Public Member Functions | Static Public Member Functions | List of all members
QgsVectorTileLoader Class Reference

The loader class takes care of loading raw vector tile data from a tile source. More...

#include <qgsvectortileloader.h>

Inheritance diagram for QgsVectorTileLoader:
Inheritance graph
[legend]

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.
 

Public Member Functions

 QgsVectorTileLoader (const QgsVectorTileDataProvider *provider, const QgsTileMatrixSet &tileMatrixSet, const QgsTileRange &range, int zoomLevel, const QPointF &viewCenter, QgsFeedback *feedback, Qgis::RendererUsage usage)
 Constructs tile loader for doing asynchronous requests and starts network requests.
 
 ~QgsVectorTileLoader ()
 
void downloadBlocking ()
 Blocks the caller until all asynchronous requests are finished (with a success or a failure)
 
QString error () const
 Returns a eventual error that occurred during loading, void if no error.
 

Static Public Member Functions

static QList< QgsVectorTileRawDatablockingFetchTileRawData (const QgsVectorTileDataProvider *provider, const QgsTileMatrixSet &tileMatrixSet, const QPointF &viewCenter, const QgsTileRange &range, int zoomLevel, QgsFeedback *feedback=nullptr, Qgis::RendererUsage usage=Qgis::RendererUsage::Unknown)
 Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched.
 

Detailed Description

The loader class takes care of loading raw vector tile data from a tile source.

Since
QGIS 3.14

Definition at line 68 of file qgsvectortileloader.h.

Constructor & Destructor Documentation

◆ QgsVectorTileLoader()

QgsVectorTileLoader::QgsVectorTileLoader ( const QgsVectorTileDataProvider provider,
const QgsTileMatrixSet tileMatrixSet,
const QgsTileRange range,
int  zoomLevel,
const QPointF &  viewCenter,
QgsFeedback feedback,
Qgis::RendererUsage  usage 
)

Constructs tile loader for doing asynchronous requests and starts network requests.

Definition at line 27 of file qgsvectortileloader.cpp.

◆ ~QgsVectorTileLoader()

QgsVectorTileLoader::~QgsVectorTileLoader ( )

Definition at line 50 of file qgsvectortileloader.cpp.

Member Function Documentation

◆ blockingFetchTileRawData()

QList< QgsVectorTileRawData > QgsVectorTileLoader::blockingFetchTileRawData ( const QgsVectorTileDataProvider provider,
const QgsTileMatrixSet tileMatrixSet,
const QPointF &  viewCenter,
const QgsTileRange range,
int  zoomLevel,
QgsFeedback feedback = nullptr,
Qgis::RendererUsage  usage = Qgis::RendererUsage::Unknown 
)
static

Returns raw tile data for the specified range of tiles. Blocks the caller until all tiles are fetched.

Definition at line 150 of file qgsvectortileloader.cpp.

◆ downloadBlocking()

void QgsVectorTileLoader::downloadBlocking ( )

Blocks the caller until all asynchronous requests are finished (with a success or a failure)

Definition at line 62 of file qgsvectortileloader.cpp.

◆ error()

QString QgsVectorTileLoader::error ( ) const

Returns a eventual error that occurred during loading, void if no error.

Definition at line 143 of file qgsvectortileloader.cpp.

◆ tileRequestFinished

void QgsVectorTileLoader::tileRequestFinished ( const QgsVectorTileRawData rawTile)
signal

Emitted when a tile request has finished. If a tile request has failed, the returned raw tile byte array is empty.


The documentation for this class was generated from the following files: