Class: QgsProfilePoint¶
Encapsulates a point on a distance-elevation profile.
Added in version 3.26.
Methods
Returns the distance of the point. |
|
Returns the elevation of the point. |
|
Returns |
|
Sets the distance of the point. |
|
Sets the elevation of the point. |
- class qgis.core.QgsProfilePoint[source]¶
Bases:
object
- __init__()
Constructor for an empty point.
- __init__(distance: float, elevation: float)
Create a point at the specified distance and elevation coordinates
- Parameters:
distance (float)
elevation (float)
- __init__(a0: QgsProfilePoint)
- Parameters:
a0 (QgsProfilePoint)
- isEmpty(self) bool [source]¶
Returns
True
if the point is empty.A
QgsProfilePoint
is considered empty when the coordinates have not been explicitly filled in.- Return type:
bool
- setDistance(self, distance: float)[source]¶
Sets the
distance
of the point.See also
- Parameters:
distance (float)