Class ST_Svf
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.earth.ST_Svf
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Svf extends org.h2gis.api.DeterministicScalarFunctionThis function will be used to compute the Sky View Factor based on geometries- Author:
- Erwan Bocher, CNRS, Jérémy Bernard, CNRS, Nicolas Fortin, IFSTTAR
-
-
Constructor Summary
Constructors Constructor Description ST_Svf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddSegments(org.locationtech.jts.geom.Coordinate[] coords, org.locationtech.jts.geom.GeometryFactory factory, org.locationtech.jts.index.strtree.STRtree strtree)Tranform to segments and add then in a STRtree if they intersect a buffer geometrystatic DoublecomputeSvf(org.locationtech.jts.geom.Point pt, org.locationtech.jts.geom.Geometry geoms, double distance, int rayCount)The method to compute the Sky View Factorstatic DoublecomputeSvf(org.locationtech.jts.geom.Point pt, org.locationtech.jts.geom.Geometry geoms, double distance, int rayCount, int stepRayLength)The method to compute the Sky View FactorStringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
computeSvf
public static Double computeSvf(org.locationtech.jts.geom.Point pt, org.locationtech.jts.geom.Geometry geoms, double distance, int rayCount) throws SQLException
The method to compute the Sky View Factor- Parameters:
pt-distance-rayCount- number of raysgeoms-- Returns:
- Throws:
SQLException
-
computeSvf
public static Double computeSvf(org.locationtech.jts.geom.Point pt, org.locationtech.jts.geom.Geometry geoms, double distance, int rayCount, int stepRayLength) throws SQLException
The method to compute the Sky View Factor- Parameters:
pt-distance-rayCount- number of raysstepRayLength- length of sub ray used to limit the number of geometries when requestedgeoms-- Returns:
- Throws:
SQLException
-
addSegments
public static void addSegments(org.locationtech.jts.geom.Coordinate[] coords, org.locationtech.jts.geom.GeometryFactory factory, org.locationtech.jts.index.strtree.STRtree strtree)Tranform to segments and add then in a STRtree if they intersect a buffer geometry- Parameters:
coords- the coordinates of the input geometryfactory- the geometry factorystrtree- the STRtree to store the segments
-
-