org.h2gis.h2spatialext.function.spatial.earth
Class ST_GeometryShadow
java.lang.Object
org.h2gis.h2spatialapi.AbstractFunction
org.h2gis.h2spatialapi.DeterministicScalarFunction
org.h2gis.h2spatialext.function.spatial.earth.ST_GeometryShadow
- All Implemented Interfaces:
- Function, ScalarFunction
public class ST_GeometryShadow
- extends DeterministicScalarFunction
Compute the shadow footprint for a single geometry.
The shadow is represented as an unified polygon.
The user must specified the sun position : azimuth and altitude and a height
to compute the shadow footprint.
- Author:
- Erwan Bocher
|
Method Summary |
static com.vividsolutions.jts.geom.Geometry |
computeShadow(com.vividsolutions.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height)
Compute the shadow footprint based on |
static com.vividsolutions.jts.geom.Geometry |
computeShadow(com.vividsolutions.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height,
boolean doUnion)
Compute the shadow footprint based on |
static com.vividsolutions.jts.geom.Geometry |
computeShadow(com.vividsolutions.jts.geom.Geometry geometry,
com.vividsolutions.jts.geom.Geometry sunPosition,
double height)
Compute the shadow footprint based on |
String |
getJavaStaticMethod()
|
static double[] |
shadowOffset(double azimuth,
double altitude,
double height)
Return the shadow offset in X and Y directions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ST_GeometryShadow
public ST_GeometryShadow()
getJavaStaticMethod
public String getJavaStaticMethod()
computeShadow
public static com.vividsolutions.jts.geom.Geometry computeShadow(com.vividsolutions.jts.geom.Geometry geometry,
com.vividsolutions.jts.geom.Geometry sunPosition,
double height)
- Compute the shadow footprint based on
- Parameters:
geometry - input geometrysunPosition - as a point where x = azimuth and y=altitudeheight - of the geometry
- Returns:
computeShadow
public static com.vividsolutions.jts.geom.Geometry computeShadow(com.vividsolutions.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height)
- Compute the shadow footprint based on
- Parameters:
geometry - input geometryazimuth - of the sun in radiansaltitude - of the sun in radiansheight - of the geometry
- Returns:
computeShadow
public static com.vividsolutions.jts.geom.Geometry computeShadow(com.vividsolutions.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height,
boolean doUnion)
- Compute the shadow footprint based on
- Parameters:
geometry - input geometryazimuth - of the sun in radiansaltitude - of the sun in radiansheight - of the geometrydoUnion - unified or not the polygon shadows
- Returns:
shadowOffset
public static double[] shadowOffset(double azimuth,
double altitude,
double height)
- Return the shadow offset in X and Y directions
- Parameters:
azimuth - in radians from north.altitude - in radians from east.height - of the geometry
- Returns:
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.