|
QGIS API Documentation 4.1.0-Master (376402f9aeb)
|
Calculates the sun's position and related sun events for a given datetime. More...
#include <qgssunpositioncalculator.h>
Static Public Member Functions | |
| 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. | |
Calculates the sun's position and related sun events for a given datetime.
This class is a high-level wrapper around the freespa algorithm for calculating solar position and events.
Definition at line 84 of file qgssunpositioncalculator.h.
|
static |
Calculates the solar position and events for a given point and time.
| point | the target point in the specified crs. |
| crs | Coordinate Reference System associated with the point. |
| context | coordinate transform context. |
| dateTime | the date and time for the calculation. |
| elevationMeters | optional elevation of the observer in meters above sea level. |
| pressure | atmospheric pressure used for refraction correction (in millibars, hPa). The default is one standard atmosphere, or 1013.25 hPa. |
| temperature | the local temperature used for refraction correction, in degrees Celsius. |
| QgsCsException | if the point could not be transformed to WGS84 |
| QgsInvalidArgumentException | when the specified arguments are invalid |
Definition at line 34 of file qgssunpositioncalculator.cpp.