Class ST_SunPosition
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.earth.ST_SunPosition
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_SunPosition extends org.h2gis.api.DeterministicScalarFunctionCompute the sun position and return a new coordinate with x = azimuth and y = altitude- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description ST_SunPosition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static org.locationtech.jts.geom.GeometrysunPosition(org.locationtech.jts.geom.Geometry point)Return the current sun positionstatic org.locationtech.jts.geom.GeometrysunPosition(org.locationtech.jts.geom.Geometry point, Timestamp date)Return the sun position for a given date-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
sunPosition
public static org.locationtech.jts.geom.Geometry sunPosition(org.locationtech.jts.geom.Geometry point)
Return the current sun position- Parameters:
point-- Returns:
-
sunPosition
public static org.locationtech.jts.geom.Geometry sunPosition(org.locationtech.jts.geom.Geometry point, Timestamp date) throws IllegalArgumentExceptionReturn the sun position for a given date- Parameters:
point-date-- Returns:
- Throws:
IllegalArgumentException
-
-