16#ifndef QGSSUNPOSITIONCALCULATOR_H
17#define QGSSUNPOSITIONCALCULATOR_H
109 const QDateTime &dateTime,
110 double elevationMeters = 0.0,
111 double pressure = 1013.25,
112 double temperature = 15.0
116 static QString extractSpaErrorMessage(
int errorCode );
Represents a coordinate reference system (CRS).
Contains information about the context in which a coordinate transform is executed.
Custom exception class for Coordinate Reference System related exceptions.
Custom exception class when argument are invalid.
Calculates the sun's position and related sun events for a given datetime.
static QgsSunPositionResult calculate(const QgsPointXY &point, const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context, const QDateTime &dateTime, double elevationMeters=0.0, double pressure=1013.25, double temperature=15.0)
Calculates the solar position and events for a given point and time.
#define SIP_THROW(name,...)
Contains the results of a solar position calculation.
QDateTime astronomicalDawn
The datetime of astronomical dawn, when the geometric center of the sun is 18 degrees below the horiz...
QDateTime astronomicalDusk
The datetime of astronomical dusk, when the geometric center of the sun is 18 degrees below the horiz...
QDateTime civilDawn
The datetime of civil dawn, when the geometric center of the sun is 6 degrees below the horizon in th...
QDateTime nauticalDawn
The datetime of nautical dawn, when the geometric center of the sun is 12 degrees below the horizon i...
double azimuth
Azimuth angle in degrees clockwise from North.
QDateTime solarTransit
The datetime of solar transit (solar noon) when the sun reaches its highest elevation (in UTC).
QDateTime solarMidnightAfter
The datetime of the solar midnight following the calculation time (in UTC).
QDateTime sunrise
The datetime of sunrise, defined as the moment the upper edge of the sun's disk becomes visible above...
QDateTime sunset
The datetime of sunset, defined as the moment the upper edge of the sun's disk disappears below the h...
QDateTime nauticalDusk
The datetime of nautical dusk, when the geometric center of the sun is 12 degrees below the horizon i...
QDateTime solarMidnightBefore
The datetime of the solar midnight preceding the calculation time (in UTC).
QDateTime civilDusk
The datetime of civil dusk, when the geometric center of the sun is 6 degrees below the horizon in th...
double apparentElevation
Apparent topocentric elevation angle in degrees (corrected for atmospheric refraction).