Subgroup: Referenced

Class: QgsReferencedPointXY

class qgis.core.QgsReferencedPointXY

Bases: qgis._core.QgsPointXY, qgis._core.QgsReferencedGeometryBase

A QgsPointXY with associated coordinate reference system.

New in version 3.0: Methods

asWkt Return the well known text representation for the point (e.g.
azimuth Calculates azimuth between this point and other one (clockwise in degree, starting from north)
compare Compares this point with another point with a fuzzy tolerance
crs Returns the associated coordinate reference system, or an invalid CRS if no reference system is set.
distance Returns the distance between this point and a specified x, y coordinate.
multiply Multiply x and y by the given value
project Returns a new point which corresponds to this point projected by a specified distance in a specified bearing.
set Sets the x and y value of the point
setCrs Sets the associated crs.
setX Sets the x value of the point
setY Sets the y value of the point
sqrDist Returns the squared distance between this point a specified x, y coordinate.
sqrDistToSegment Returns the minimum distance between this point and a segment
toQPointF Converts a point to a QPointF
toString Returns a string representation of the point (x, y) with a preset precision.
x Get the x value of the point
y Get the y value of the point

Attributes