QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsBearingUtils Class Reference

Utilities for calculating bearings and directions. More...

#include <qgsbearingutils.h>

Static Public Member Functions

static Q_INVOKABLE double 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.
 

Detailed Description

Utilities for calculating bearings and directions.

Definition at line 33 of file qgsbearingutils.h.

Member Function Documentation

◆ bearingTrueNorth()

double QgsBearingUtils::bearingTrueNorth ( const QgsCoordinateReferenceSystem crs,
const QgsCoordinateTransformContext transformContext,
const QgsPointXY point 
)
static

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.

Definition at line 26 of file qgsbearingutils.cpp.


The documentation for this class was generated from the following files: