public class ST_GeometryShadow
extends org.h2gis.api.DeterministicScalarFunction
| Constructor and Description |
|---|
ST_GeometryShadow() |
| Modifier and Type | Method and Description |
|---|---|
static org.locationtech.jts.geom.Geometry |
computeShadow(org.locationtech.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height)
Compute the shadow footprint based on
|
static org.locationtech.jts.geom.Geometry |
computeShadow(org.locationtech.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height,
boolean doUnion)
Compute the shadow footprint based on
|
static org.locationtech.jts.geom.Geometry |
computeShadow(org.locationtech.jts.geom.Geometry geometry,
org.locationtech.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
|
addProperty, getProperty, removePropertypublic String getJavaStaticMethod()
public static org.locationtech.jts.geom.Geometry computeShadow(org.locationtech.jts.geom.Geometry geometry,
org.locationtech.jts.geom.Geometry sunPosition,
double height)
geometry - input geometrysunPosition - as a point where x = azimuth and y=altitudeheight - of the geometrypublic static org.locationtech.jts.geom.Geometry computeShadow(org.locationtech.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height)
geometry - input geometryazimuth - of the sun in radiansaltitude - of the sun in radiansheight - of the geometrypublic static org.locationtech.jts.geom.Geometry computeShadow(org.locationtech.jts.geom.Geometry geometry,
double azimuth,
double altitude,
double height,
boolean doUnion)
geometry - input geometryazimuth - of the sun in radiansaltitude - of the sun in radiansheight - of the geometrydoUnion - unified or not the polygon shadowspublic static double[] shadowOffset(double azimuth,
double altitude,
double height)
azimuth - in radians from north.altitude - in radians from east.height - of the geometryCopyright © 2019 CNRS. All rights reserved.