QgsBearingUtils class
Utilities for calculating bearings and directions.
Contents
- Reference
Public static functions
- static auto bearingTrueNorth(const QgsCoordinateReferenceSystem& crs, const QgsCoordinateTransformContext& transformContext, const QgsPointXY& point) -> double
- Returns the direction to true north from a specified point and for a specified coordinate reference system.
Function documentation
static double QgsBearingUtils:: bearingTrueNorth(const QgsCoordinateReferenceSystem& crs,
const QgsCoordinateTransformContext& transformContext,
const QgsPointXY& point)
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.