Class: QgsPointCloudAttributeCollection

A collection of point cloud attributes.

Added in version 3.18.

Methods

at

Returns the attribute at the specified index.

attributes

Returns all attributes

count

Returns the number of attributes present in the collection.

extend

Adds specific missing attributes from another QgsPointCloudAttributeCollection

find

Finds the attribute with the name

indexOf

Returns the index of the attribute with the specified name.

pointRecordSize

Returns total size of record

push_back

Adds extra attribute

toFields

Converts the attribute collection to an equivalent QgsFields collection.

class qgis.core.QgsPointCloudAttributeCollection[source]

Bases: object

__init__()
__init__(attributes: Iterable[QgsPointCloudAttribute])

Ctor with given attributes

Parameters:

attributes (Iterable[QgsPointCloudAttribute])

__init__(a0: QgsPointCloudAttributeCollection)
Parameters:

a0 (QgsPointCloudAttributeCollection)

at(self, index: int) QgsPointCloudAttribute

Returns the attribute at the specified index.

Parameters:

index (int)

Return type:

QgsPointCloudAttribute

attributes(self) List[QgsPointCloudAttribute]

Returns all attributes

Return type:

List[QgsPointCloudAttribute]

count(self) int[source]

Returns the number of attributes present in the collection.

Return type:

int

extend(self, otherCollection: QgsPointCloudAttributeCollection, matchingNames: Iterable[str | None])[source]

Adds specific missing attributes from another QgsPointCloudAttributeCollection

Parameters:

Added in version 3.26.

find(self, attributeName: str | None)[source]

Finds the attribute with the name

Returns None if not found.

Parameters:

attributeName (Optional[str]) -> (Optional[QgsPointCloudAttribute])

indexOf(self, name: str | None) int[source]

Returns the index of the attribute with the specified name.

Returns -1 if a matching attribute was not found.

Parameters:

name (Optional[str])

Return type:

int

pointRecordSize(self) int[source]

Returns total size of record

Return type:

int

push_back(self, attribute: QgsPointCloudAttribute)[source]

Adds extra attribute

Parameters:

attribute (QgsPointCloudAttribute)

toFields(self) QgsFields[source]

Converts the attribute collection to an equivalent QgsFields collection.

Return type:

QgsFields