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
Returns the attribute at the specified
index
.Returns all attributes
Returns the number of attributes present in the collection.
Adds specific missing attributes from another QgsPointCloudAttributeCollection
Finds the attribute with the name
Returns the index of the attribute with the specified
name
.Returns total size of record
Adds extra attribute
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:
- 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
- extend(self, otherCollection: QgsPointCloudAttributeCollection, matchingNames: Iterable[str])¶
Adds specific missing attributes from another QgsPointCloudAttributeCollection
- Parameters:
otherCollection (QgsPointCloudAttributeCollection) – a
QgsPointCloudAttributeCollection
with more attributesmatchingNames (Iterable[str]) – the names of the attributes to be added
New in version 3.26.
- 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) –