Class: QgsVectorTileMatrixSet

Encapsulates properties of a vector tile matrix set, including tile origins and scaling information.

Added in version 3.22.6.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorTileMatrixSet

Base classes

QgsTileMatrixSet

Defines a set of tile matrices for multiple zoom levels.

Methods

fromEsriJson

Initializes the tile structure settings from an ESRI REST VectorTileService json map.

Static Methods

fromWebMercator

Returns a vector tile structure corresponding to the standard web mercator/GoogleCRS84Quad setup.

class qgis.core.QgsVectorTileMatrixSet[source]

Bases: QgsTileMatrixSet

fromEsriJson(self, json: dict[str, Any], rootTileMap: dict[str, Any] = {}) bool[source]

Initializes the tile structure settings from an ESRI REST VectorTileService json map.

Note

This same structure is utilized in ESRI vtpk archives in the root.json file.

Optionally, a rootTileMap can be specified for indexed vector tile datasets (since QGIS 3.32)

Parameters:
  • json (dict[str, Any])

  • rootTileMap (dict[str, Any] = {})

Return type:

bool

static fromWebMercator(minimumZoom: int = 0, maximumZoom: int = 14) QgsVectorTileMatrixSet[source]

Returns a vector tile structure corresponding to the standard web mercator/GoogleCRS84Quad setup.

Parameters:
  • minimumZoom (int = 0)

  • maximumZoom (int = 14)

Return type:

QgsVectorTileMatrixSet