Class: QgsProfilePoint¶
- class qgis.core.QgsProfilePoint¶
Bases:
sip.wrapper
Encapsulates a point on a distance-elevation profile.
New in version 3.26.
QgsProfilePoint() Constructor for an empty point.
QgsProfilePoint(distance: float, elevation: float) Create a point at the specified distance and elevation coordinates
QgsProfilePoint(
QgsProfilePoint
)Methods
Returns the distance of the point.
Returns the elevation of the point.
Returns
True
if the point is empty.Sets the
distance
of the point.Sets the
elevation
of the point.- distance(self) float ¶
Returns the distance of the point.
See also
- Return type:
float
- elevation(self) float ¶
Returns the elevation of the point.
See also
- Return type:
float
- isEmpty(self) bool ¶
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)¶
Sets the
distance
of the point.See also
- Parameters:
distance (float) –
- setElevation(self, elevation: float)¶
Sets the
elevation
of the point.See also
- Parameters:
elevation (float) –