2017-04-24 08:48:57 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsbearingutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-10-18 11:37:48 +10:00
|
|
|
class QgsBearingUtils
|
|
|
|
{
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Utilities for calculating bearings and directions.
|
|
|
|
|
2017-04-24 08:48:57 +02:00
|
|
|
.. versionadded:: 2.18
|
|
|
|
%End
|
|
|
|
|
2016-10-18 11:37:48 +10:00
|
|
|
%TypeHeaderCode
|
2017-04-24 08:48:57 +02:00
|
|
|
#include "qgsbearingutils.h"
|
2016-10-18 11:37:48 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-04-24 08:48:57 +02:00
|
|
|
static double bearingTrueNorth( const QgsCoordinateReferenceSystem &crs,
|
2018-01-30 13:26:36 +07:00
|
|
|
const QgsCoordinateTransformContext &transformContext,
|
2017-06-01 12:18:43 +02:00
|
|
|
const QgsPointXY &point );
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
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.
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
2016-10-18 11:37:48 +10:00
|
|
|
};
|
2017-04-24 08:48:57 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsbearingutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|