Class: QgsTiledSceneLayer

Represents a map layer supporting display of tiled scene objects.

Added in version 3.34.

Class Hierarchy

Inheritance diagram of qgis.core.QgsTiledSceneLayer

Base classes

QgsMapLayer

Base class for all map layer types.

QObject

Methods

renderer

Returns the 2D renderer for the tiled scene.

setRenderer

Sets the 2D renderer for the tiled scene.

class qgis.core.QgsTiledSceneLayer[source]

Bases: QgsMapLayer

__init__(uri: str | None = '', baseName: str | None = '', provider: str | None = '', options: QgsTiledSceneLayer.LayerOptions = QgsTiledSceneLayer.LayerOptions())

Constructor for QgsTiledSceneLayer.

Parameters:
  • uri (Optional[str] = '')

  • baseName (Optional[str] = '')

  • provider (Optional[str] = '')

  • options (QgsTiledSceneLayer.LayerOptions = QgsTiledSceneLayer.LayerOptions())

class LayerOptions

Bases: object

Setting options for loading tiled scene layers.

skipCrsValidation: bool

Controls whether the layer is allowed to have an invalid/unknown CRS.

If True, then no validation will be performed on the layer’s CRS and the layer layer’s crs() may be invalid() (i.e. the layer will have no georeferencing available and will be treated as having purely numerical coordinates).

If False (the default), the layer’s CRS will be validated using QgsCoordinateReferenceSystem.validate(), which may cause a blocking, user-facing dialog asking users to manually select the correct CRS for the layer.

renderer(self) QgsTiledSceneRenderer | None[source]

Returns the 2D renderer for the tiled scene.

See also

setRenderer()

Return type:

Optional[QgsTiledSceneRenderer]

setRenderer(self, renderer: QgsTiledSceneRenderer | None)[source]

Sets the 2D renderer for the tiled scene.

Ownership of renderer is transferred to the layer.

See also

renderer()

Parameters:

renderer (Optional[QgsTiledSceneRenderer])