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

distance

Returns the distance of the point.

elevation

Returns the elevation of the point.

isEmpty

Returns True if the point is empty.

setDistance

Sets the distance of the point.

setElevation

Sets the elevation of the point.

distance(self) float

Returns the distance of the point.

See also

setDistance()

Return type:

float

elevation(self) float

Returns the elevation of the point.

See also

setElevation()

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

distance()

Parameters:

distance (float) –

setElevation(self, elevation: float)

Sets the elevation of the point.

See also

elevation()

Parameters:

elevation (float) –