Class: QgsPointCloudSubIndex

Represents an individual index and metadata for the virtual point cloud data provider.

The index is initially None until the virtual point cloud data provider explicitly loads the uri.

Added in version 4.0.

List of all members, including inherited members

Methods

extent

Returns the extent for this sub index in the index's crs coordinates.

index

Returns the point cloud index.

pointCount

The number of points contained in the index.

polygonBounds

Returns the bounds of the sub index in the index's crs coordinates as a multi polygon geometry.

setIndex

Sets the point cloud index to index.

uri

Returns the uri for this sub index

zRange

Returns the elevation range for this sub index hoping it's in meters.

class qgis.core.QgsPointCloudSubIndex[source]

Bases: object

__init__(uri: str | None, geometry: QgsGeometry, extent: QgsRectangle, zRange: QgsDoubleRange, count: int)

Constructor

Parameters:
__init__(a0: QgsPointCloudSubIndex)
Parameters:

a0 (QgsPointCloudSubIndex)

extent(self) QgsRectangle[source]

Returns the extent for this sub index in the index’s crs coordinates.

Return type:

QgsRectangle

index(self) QgsPointCloudIndex[source]

Returns the point cloud index. May be None if not loaded.

Return type:

QgsPointCloudIndex

pointCount(self) int[source]

The number of points contained in the index.

Return type:

int

polygonBounds(self) QgsGeometry[source]

Returns the bounds of the sub index in the index’s crs coordinates as a multi polygon geometry. This can be the same as the extent or a more detailed geometry like a convex hull if available.

Return type:

QgsGeometry

setIndex(self, index: QgsPointCloudIndex)[source]

Sets the point cloud index to index.

Parameters:

index (QgsPointCloudIndex)

uri(self) str[source]

Returns the uri for this sub index

Return type:

str

zRange(self) QgsDoubleRange[source]

Returns the elevation range for this sub index hoping it’s in meters.

Return type:

QgsDoubleRange