Class: QgsBearingUtils¶
- class qgis.core.QgsBearingUtils¶
Bases:
sip.wrapper
Utilities for calculating bearings and directions.
Methods
Returns the direction to true north from a specified point and for a specified coordinate reference system.
Attributes
- bearingTrueNorth(crs: QgsCoordinateReferenceSystem, transformContext: QgsCoordinateTransformContext, point: QgsPointXY) → float¶
Returns the direction to true north from a specified point and for a specified coordinate reference system. The returned value is in degrees clockwise from vertical. An exception will be thrown if the bearing could not be calculated.
- Parameters
crs (QgsCoordinateReferenceSystem) –
transformContext (QgsCoordinateTransformContext) –
point (QgsPointXY) –
- Return type
float
- staticMetaObject = <PyQt5.QtCore.QMetaObject object>¶