Class: QgsTiledSceneDataProvider

Base class for data providers for QgsTiledSceneLayer.

Added in version 3.34.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: clone(), QgsDataProvider.crs(), QgsDataProvider.description(), QgsDataProvider.extent(), index(), QgsDataProvider.isValid(), QgsDataProvider.name()

Class Hierarchy

Inheritance diagram of qgis.core.QgsTiledSceneDataProvider

Base classes

QgsDataProvider

Abstract base class for spatial data provider implementations.

QObject

Abstract Methods

clone

Returns a clone of the data provider.

index

Returns the provider's tile index.

Methods

boundingVolume

Returns the bounding volume for the data provider.

sceneCrs

Returns the original coordinate reference system for the tiled scene data.

Virtual Methods

In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsTiledSceneDataProvider. See the FAQ for more details.

capabilities

Returns flags containing the supported capabilities for the data provider.

zRange

Returns the provider's z range, or an infinite range if this is not known.

class qgis.core.QgsTiledSceneDataProvider[source]

Bases: QgsDataProvider

__init__(uri: str | None, providerOptions: QgsDataProvider.ProviderOptions, flags: Qgis.DataProviderReadFlags | Qgis.DataProviderReadFlag = Qgis.DataProviderReadFlags())

Constructor for QgsTiledSceneDataProvider

Parameters:
__init__(other: QgsTiledSceneDataProvider)
Parameters:

other (QgsTiledSceneDataProvider)

boundingVolume(self) QgsTiledSceneBoundingVolume

Returns the bounding volume for the data provider.

This corresponds to the root node bounding volume.

Warning

Coordinates in the returned volume are in the sceneCrs() reference system, not the QgsDataProvider.crs() system.

Return type:

QgsTiledSceneBoundingVolume

virtual capabilities(self) Qgis.TiledSceneProviderCapabilities[source]

Returns flags containing the supported capabilities for the data provider.

Return type:

Qgis.TiledSceneProviderCapabilities

abstract clone(self) QgsTiledSceneDataProvider | None[source]

Returns a clone of the data provider.

Return type:

Optional[QgsTiledSceneDataProvider]

abstract index(self) QgsTiledSceneIndex[source]

Returns the provider’s tile index.

This is a shallow copy, implicitly shared container for an underlying QgsAbstractTiledSceneIndex implementation.

The index is thread safe and can be used safely across multiple threads or transferred between threads.

Return type:

QgsTiledSceneIndex

sceneCrs(self) QgsCoordinateReferenceSystem[source]

Returns the original coordinate reference system for the tiled scene data.

This may differ from the QgsDataProvider.crs(), which is the best CRS representation for the data provider for 2D use.

Warning

Care must be taken to ensure that sceneCrs() is used instead of crs() whenever transforming bounding volumes or geometries associated with the provider.

Return type:

QgsCoordinateReferenceSystem

virtual zRange(self) QgsDoubleRange[source]

Returns the provider’s z range, or an infinite range if this is not known.

Return type:

QgsDoubleRange