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.
Added 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
Returns the zoom level corresponding to the target render.
Sets per-layer fields
Sets the zoom level corresponding to the target render.
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]
- renderZoomLevel(self) int ¶
Returns the zoom level corresponding to the target render.
This may differ from the tile’s actual zoom leve when indexed tiles cause replacement of higher zoom level tiles with data from lower zoom level tiles.
See also
Added in version 3.32.
- Return type:
int
- setRenderZoomLevel(self, level: int)¶
Sets the zoom level corresponding to the target render.
This may differ from the tile’s actual zoom leve when indexed tiles cause replacement of higher zoom level tiles with data from lower zoom level tiles.
See also
Added in version 3.32.
- Parameters:
level (int)
- 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