Class: QgsPointCloudAttributeCollection¶
A collection of point cloud attributes.
Added in version 3.18.
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 |
- class qgis.core.QgsPointCloudAttributeCollection[source]¶
Bases:
object
- __init__()
- __init__(attributes: Iterable[QgsPointCloudAttribute])
Ctor with given attributes
- Parameters:
attributes (Iterable[QgsPointCloudAttribute])
- __init__(a0: QgsPointCloudAttributeCollection)
- Parameters:
- 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 [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:
otherCollection (QgsPointCloudAttributeCollection) – a
QgsPointCloudAttributeCollection
with more attributesmatchingNames (Iterable[Optional[str]]) – the names of the attributes to be added
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
- push_back(self, attribute: QgsPointCloudAttribute)[source]¶
Adds extra attribute
- Parameters:
attribute (QgsPointCloudAttribute)