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 objectQgsVectorTileRendererData(
QgsVectorTileRendererData
)Methods
Returns per-layer fields
Returns coordinates of the tile
Returns list of all features within a single sub-layer
Returns list of layer names present in the tile
Sets per-layer fields
Sets polygon of the tile
Returns polygon (made out of four corners of the tile) in screen coordinates calculated from render context
- 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]
- 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