Class: QgsPointCloudAttributeCollection

class qgis.core.QgsPointCloudAttributeCollection

Bases: sip.wrapper

Collection of point cloud attributes

New in version 3.18.

QgsPointCloudAttributeCollection() Ctor

QgsPointCloudAttributeCollection(attributes: Iterable[QgsPointCloudAttribute]) Ctor with given attributes

QgsPointCloudAttributeCollection(QgsPointCloudAttributeCollection)

Methods

at

Returns the attribute at the specified index.

attributes

Returns all attributes

count

Returns the number of attributes present in the collection.

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.

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

Returns the number of attributes present in the collection.

Return type

int

find(self, attributeName: str) Tuple[QgsPointCloudAttribute, int]

Finds the attribute with the name

Returns None if not found.

Parameters

attributeName (str) –

Return type

Tuple[QgsPointCloudAttribute, int]

indexOf(self, name: str) int

Returns the index of the attribute with the specified name.

Returns -1 if a matching attribute was not found.

Parameters

name (str) –

Return type

int

pointRecordSize(self) int

Returns total size of record

Return type

int

push_back(self, attribute: QgsPointCloudAttribute)

Adds extra attribute

Parameters

attribute (QgsPointCloudAttribute) –

toFields(self) QgsFields

Converts the attribute collection to an equivalent QgsFields collection.

Return type

QgsFields