Class ST_Distance
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.properties.ST_Distance
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Distance extends org.h2gis.api.DeterministicScalarFunctionFor geometry type returns the 2-dimensional minimum Cartesian distance between two geometries in projected units (spatial ref units)- Author:
- Nicolas Fortin
-
-
Constructor Summary
Constructors Constructor Description ST_Distance()Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Doubledistance(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b)StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
distance
public static Double distance(org.locationtech.jts.geom.Geometry a, org.locationtech.jts.geom.Geometry b) throws SQLException
- Parameters:
a- Geometry instance or nullb- Geometry instance or null- Returns:
- the 2-dimensional minimum Cartesian distance between two geometries in projected units (spatial ref units)
- Throws:
SQLException
-
-