Class: QgsTiledSceneTile

class qgis.core.QgsTiledSceneTile

Bases: sip.wrapper

Represents an individual tile from a tiled scene data source.

Added in version 3.34.

QgsTiledSceneTile() Constructor for an invalid tile.

See also

isValid()

QgsTiledSceneTile(id: int) Constructor for an valid tile.

See also

isValid()

QgsTiledSceneTile(other: QgsTiledSceneTile) Copy constructor

Methods

baseUrl

Returns the tile's base URL.

boundingVolume

Returns the bounding volume for the tile.

geometricError

Returns the tile's geometric error, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry.

id

Returns the tile's unique ID.

isValid

Returns True if the tile is a valid tile (i.e. not default constructed).

metadata

Returns additional metadata attached to the tile.

refinementProcess

Returns the tile's refinement process.

resources

Returns the resources attached to the tile.

setBaseUrl

Sets the tile's base URL.

setBoundingVolume

Sets the bounding volume for the tile.

setGeometricError

Sets the tile's geometric error, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry.

setMetadata

Sets additional metadata attached to the tile.

setRefinementProcess

Sets the tile's refinement process.

setResources

Sets the resources attached to the tile.

setTransform

Sets the tile's transform.

transform

Returns the tile's transform.

baseUrl(self) QUrl

Returns the tile’s base URL. If this tile’s resources are relative paths, they would get resolved against this URL.

See also

setBaseUrl()

Return type:

QUrl

boundingVolume(self) QgsTiledSceneBoundingVolume

Returns the bounding volume for the tile.

Return type:

QgsTiledSceneBoundingVolume

geometricError(self) float

Returns the tile’s geometric error, which is the error, in scene CRS units, of the tile’s simplified representation of its source geometry.

Return type:

float

id(self) int

Returns the tile’s unique ID.

Return type:

int

isValid(self) bool

Returns True if the tile is a valid tile (i.e. not default constructed).

Return type:

bool

metadata(self) Dict[str, Any]

Returns additional metadata attached to the tile.

See also

setMetadata()

Return type:

Dict[str, Any]

refinementProcess(self) Qgis.TileRefinementProcess

Returns the tile’s refinement process.

Refinement determines the process by which a lower resolution parent tile’s content is handled when its higher resolution children are also included.

Return type:

Qgis.TileRefinementProcess

resources(self) Dict[str, Any]

Returns the resources attached to the tile.

See also

setResources()

Return type:

Dict[str, Any]

setBaseUrl(self, baseUrl: QUrl)

Sets the tile’s base URL. If this tile’s resources are relative paths, they would get resolved against this URL.

See also

baseUrl()

Parameters:

baseUrl (QUrl)

setBoundingVolume(self, volume: QgsTiledSceneBoundingVolume)

Sets the bounding volume for the tile.

See also

boundingVolume()

Parameters:

volume (QgsTiledSceneBoundingVolume)

setGeometricError(self, error: float)

Sets the tile’s geometric error, which is the error, in scene CRS units, of the tile’s simplified representation of its source geometry.

See also

geometricError()

Parameters:

error (float)

setMetadata(self, metadata: Dict[str, Any])

Sets additional metadata attached to the tile.

See also

metadata()

Parameters:

metadata (Dict[str)

setRefinementProcess(self, process: Qgis.TileRefinementProcess)

Sets the tile’s refinement process.

Refinement determines the process by which a lower resolution parent tile’s content is handled when its higher resolution children are also included.

Parameters:

process (Qgis.TileRefinementProcess)

setResources(self, resources: Dict[str, Any])

Sets the resources attached to the tile.

See also

resources()

Parameters:

resources (Dict[str)

setTransform(self, transform: QgsMatrix4x4)

Sets the tile’s transform.

See also

transform()

Parameters:

transform (QgsMatrix4x4)

transform(self) QgsMatrix4x4

Returns the tile’s transform. May be None if no transform is associated with the tile.

This represents the transformation which must be applied to all geometries from the tile in order to transform them to the dataset’s coordinate reference system.

See also

transform()

Return type:

QgsMatrix4x4