QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
This class is responsible for decoding raw tile data written with Mapbox Vector Tiles encoding. More...
#include <qgsvectortilemvtdecoder.h>
Public Member Functions | |
QgsVectorTileMVTDecoder (const QgsVectorTileMatrixSet &structure) | |
Constructor for QgsVectorTileMVTDecoder, using the specified tile structure. | |
~QgsVectorTileMVTDecoder () | |
bool | decode (const QgsVectorTileRawData &rawTileData) |
Tries to decode raw tile data, returns true on success. | |
QgsVectorTileFeatures | layerFeatures (const QMap< QString, QgsFields > &perLayerFields, const QgsCoordinateTransform &ct, const QSet< QString > *layerSubset=nullptr) const |
Returns decoded features grouped by sub-layers. | |
QStringList | layerFieldNames (const QString &layerName) const |
Returns a list of all field names in a tile. It can only be called after a successful decode() | |
QStringList | layers () const |
Returns a list of sub-layer names in a tile. It can only be called after a successful decode() | |
This class is responsible for decoding raw tile data written with Mapbox Vector Tiles encoding.
Definition at line 40 of file qgsvectortilemvtdecoder.h.
QgsVectorTileMVTDecoder::QgsVectorTileMVTDecoder | ( | const QgsVectorTileMatrixSet & | structure | ) |
Constructor for QgsVectorTileMVTDecoder, using the specified tile structure.
Definition at line 35 of file qgsvectortilemvtdecoder.cpp.
|
default |
bool QgsVectorTileMVTDecoder::decode | ( | const QgsVectorTileRawData & | rawTileData | ) |
Tries to decode raw tile data, returns true on success.
Definition at line 41 of file qgsvectortilemvtdecoder.cpp.
QgsVectorTileFeatures QgsVectorTileMVTDecoder::layerFeatures | ( | const QMap< QString, QgsFields > & | perLayerFields, |
const QgsCoordinateTransform & | ct, | ||
const QSet< QString > * | layerSubset = nullptr |
||
) | const |
Returns decoded features grouped by sub-layers.
It can only be called after a successful decode()
If layerSubset is specified then only features from the specified layers will be returned.
Definition at line 111 of file qgsvectortilemvtdecoder.cpp.
QStringList QgsVectorTileMVTDecoder::layerFieldNames | ( | const QString & | layerName | ) | const |
Returns a list of all field names in a tile. It can only be called after a successful decode()
Definition at line 89 of file qgsvectortilemvtdecoder.cpp.
QStringList QgsVectorTileMVTDecoder::layers | ( | ) | const |
Returns a list of sub-layer names in a tile. It can only be called after a successful decode()
Definition at line 70 of file qgsvectortilemvtdecoder.cpp.