Class: QgsVectorTileRendererData¶
-
class
qgis.core.
QgsVectorTileRendererData
(id: QgsTileXYZ)¶ Bases:
sip.wrapper
Constructs the object
QgsVectorTileRendererData(
QgsVectorTileRendererData
)Contains decoded features of a single vector tile and any other data necessary for rendering of it.
New in version 3.14.
- Parameters
id –
-
id
(self) → QgsTileXYZ¶ Returns coordinates of the tile
- Return type
-
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]
-
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