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¶
Base classes¶
Abstract base class for spatial data provider implementations. |
|
Abstract Methods
Returns a clone of the data provider. |
|
Returns the provider's tile index. |
Methods
Returns the bounding volume for the data provider. |
|
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.
Returns flags containing the supported capabilities for the data provider. |
|
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:
uri (Optional[str])
providerOptions (QgsDataProvider.ProviderOptions)
flags (Union[Qgis.DataProviderReadFlags, Qgis.DataProviderReadFlag] = Qgis.DataProviderReadFlags())
- __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 theQgsDataProvider.crs()
system.- Return type:
- virtual capabilities(self) Qgis.TiledSceneProviderCapabilities [source]¶
Returns flags containing the supported capabilities for the data provider.
- Return type:
- 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:
- 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 ofcrs()
whenever transforming bounding volumes or geometries associated with the provider.- Return type:
- virtual zRange(self) QgsDoubleRange [source]¶
Returns the provider’s z range, or an infinite range if this is not known.
- Return type: