Class ST_Centroid
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.properties.ST_Centroid
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_Centroid extends org.h2gis.api.DeterministicScalarFunctionComputes the centroid of this Geometry. The centroid is equal to the centroid of the set of component Geometries of highest dimension (since the lower-dimension geometries contribute zero "weight" to the centroid)- Author:
- Nicolas Fortin
-
-
Constructor Summary
Constructors Constructor Description ST_Centroid()Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.locationtech.jts.geom.GeometrygetCentroid(org.locationtech.jts.geom.Geometry geometry)StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
-
getCentroid
public static org.locationtech.jts.geom.Geometry getCentroid(org.locationtech.jts.geom.Geometry geometry)
-
-