User Tools

Site Tools


Table of Contents

TGIS_Utils.GisSunPosition(TGIS_Point, TDateTime, double, double) method

DK11 for Java | tatukgis.jdk.TGIS_Utils.GisSunPosition | Overloads | Methods | Properties

Calculate sun's position based on time, date, and location on Earth

Available also on: Delphi | .NET | ActiveX.


// Java
public static void GisSunPosition(
  TGIS_Point _ptg,
  TDateTime _utc_time,
  /* ref */ @ValueTypeParameter VarParameter<double> _altitude,
  /* ref */ @ValueTypeParameter VarParameter<double> _azimuth
// Oxygene
  class procedure GisSunPosition(
    _ptg : TGIS_Point;
    _utc_time : TDateTime;
    var _altitude : Double;
    var _azimuth : Double


Name Type Description
_ptg TGIS_Point observer's location in geographic coordinate system expressed in radians
_utc_time TDateTime observer's time given in UTC (Coordinated Universal Time);
_altitude double
angular height in radians of the sun in the sky measured from the horizontal; values from 0 at sunrise and sunset to Pi/2 at solar noon (also known as an elvation angle)
_azimuth double
angle in radians in the horizontal plane measured clockwise from north to the horizontal projection of the sun's rays; values from 0 to 2*Pi


This method is recommended to use to avoid the confusion associated with time zones and daylight saving time.

2020/03/13 21:58

Page Tools