Class: QgsVectorTileRendererData

class qgis.core.QgsVectorTileRendererData

Bases: sip.wrapper

Contains decoded features of a single vector tile and any other data necessary for rendering of it.

New in version 3.14.

QgsVectorTileRendererData(id: QgsTileXYZ) Constructs the object

QgsVectorTileRendererData(QgsVectorTileRendererData)

Methods

fields

Returns per-layer fields

id

Returns coordinates of the tile

layerFeatures

Returns list of all features within a single sub-layer

layers

Returns list of layer names present in the tile

setFields

Sets per-layer fields

setTilePolygon

Sets polygon of the tile

tilePolygon

Returns polygon (made out of four corners of the tile) in screen coordinates calculated from render context

fields(self)Dict[str, QgsFields]

Returns per-layer fields

Return type

Dict[str, QgsFields]

id(self)QgsTileXYZ

Returns coordinates of the tile

Return type

QgsTileXYZ

layerFeatures(self, layerName: str)List[QgsFeature]

Returns list of all features within a single sub-layer

Parameters

layerName (str) –

Return type

List[QgsFeature]

layers(self)List[str]

Returns list of layer names present in the tile

Return type

List[str]

setFields(self, fields: Dict[str, QgsFields])

Sets per-layer fields

Parameters

fields (Dict[str) –

setTilePolygon(self, polygon: QPolygon)

Sets polygon of the tile

Parameters

polygon (QPolygon) –

tilePolygon(self)QPolygon

Returns polygon (made out of four corners of the tile) in screen coordinates calculated from render context

Return type

QPolygon