QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
33 throw QgsException( QObject::tr(
"Could not create transform to calculate true north" ) );
43 p2.
setY( p2.
y() + 0.000001 );
Defines a QGIS exception class.
Contains information about the context in which a coordinate transform is executed.
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 s...
const QgsCoordinateReferenceSystem & crs
void setY(double y) SIP_HOLDGIL
Sets the y value of the point.
This class represents a coordinate reference system (CRS).
A class to represent a 2D point.
double azimuth(const QgsPointXY &other) const SIP_HOLDGIL
Calculates azimuth between this point and other one (clockwise in degree, starting from north)
static Q_INVOKABLE QgsCoordinateReferenceSystem fromEpsgId(long epsg)
Creates a CRS from a given EPSG ID.