QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsvectortilemvtdecoder.h>
Public Member Functions | |
QgsVectorTileMVTDecoder () | |
~QgsVectorTileMVTDecoder () | |
bool | decode (QgsTileXYZ tileID, const QByteArray &rawTileData) |
Tries to decode raw tile data, returns true on success. More... | |
QgsVectorTileFeatures | layerFeatures (const QMap< QString, QgsFields > &perLayerFields, const QgsCoordinateTransform &ct) const |
Returns decoded features grouped by sub-layers. It can only be called after a successful decode() More... | |
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() More... | |
QStringList | layers () const |
Returns a list of sub-layer names in a tile. It can only be called after a successful decode() More... | |
This class is responsible for decoding raw tile data written with Mapbox Vector Tiles encoding.
Definition at line 36 of file qgsvectortilemvtdecoder.h.
|
default |
|
default |
bool QgsVectorTileMVTDecoder::decode | ( | QgsTileXYZ | tileID, |
const QByteArray & | rawTileData | ||
) |
Tries to decode raw tile data, returns true on success.
Definition at line 36 of file qgsvectortilemvtdecoder.cpp.
QgsVectorTileFeatures QgsVectorTileMVTDecoder::layerFeatures | ( | const QMap< QString, QgsFields > & | perLayerFields, |
const QgsCoordinateTransform & | ct | ||
) | const |
Returns decoded features grouped by sub-layers. It can only be called after a successful decode()
Definition at line 80 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 65 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 53 of file qgsvectortilemvtdecoder.cpp.