Class: QgsPointCloudStatistics¶
- class qgis.core.QgsPointCloudStatistics¶
Bases:
sip.wrapper
Class used to store statistics of a point cloud dataset.
New in version 3.26.
QgsPointCloudStatistics() Constructor
QgsPointCloudStatistics(
QgsPointCloudStatistics
)Methods
Returns a list of existing classes which are present for the specified
attribute
Clears the statistics of all attributes
Merges the current statistics with the statistics from
stats
Creates a statistics object from the JSON object
stats
Returns the maximum value for the attribute
attribute
If no matching statistic is available then NaN will be returned.Returns the mean value for the attribute
attribute
If no matching statistic is available then NaN will be returned.Returns the minimum value for the attribute
attribute
If no matching statistic is available then NaN will be returned.Returns the number of points used to calculate the statistics
Returns the standard deviation value for the attribute
attribute
If no matching statistic is available then NaN will be returned.Returns the calculated statistics of attribute
attribute
Converts the current statistics object into JSON object
- classesOf(self, attribute: str) List[int] ¶
Returns a list of existing classes which are present for the specified
attribute
- Parameters:
attribute (str) –
- Return type:
List[int]
- clear(self)¶
Clears the statistics of all attributes
clear(self, attributes: Iterable[QgsPointCloudAttribute]) Clears the statistics of given attributes
attributes
- combineWith(self, stats: QgsPointCloudStatistics)¶
Merges the current statistics with the statistics from
stats
- Parameters:
stats (QgsPointCloudStatistics) –
- fromStatisticsJson(stats: QByteArray | bytes | bytearray) QgsPointCloudStatistics ¶
Creates a statistics object from the JSON object
stats
- Parameters:
stats (Union[QByteArray) –
- Return type:
- maximum(self, attribute: str) float ¶
Returns the maximum value for the attribute
attribute
If no matching statistic is available then NaN will be returned.- Parameters:
attribute (str) –
- Return type:
float
- mean(self, attribute: str) float ¶
Returns the mean value for the attribute
attribute
If no matching statistic is available then NaN will be returned.- Parameters:
attribute (str) –
- Return type:
float
- minimum(self, attribute: str) float ¶
Returns the minimum value for the attribute
attribute
If no matching statistic is available then NaN will be returned.- Parameters:
attribute (str) –
- Return type:
float
- sampledPointsCount(self) int ¶
Returns the number of points used to calculate the statistics
- Return type:
int
- stDev(self, attribute: str) float ¶
Returns the standard deviation value for the attribute
attribute
If no matching statistic is available then NaN will be returned.- Parameters:
attribute (str) –
- Return type:
float
- statisticsOf(self, attribute: str) QgsPointCloudAttributeStatistics ¶
Returns the calculated statistics of attribute
attribute
- Parameters:
attribute (str) –
- Return type:
- toStatisticsJson(self) QByteArray ¶
Converts the current statistics object into JSON object
- Return type:
QByteArray