Class ST_Centroid

  • All Implemented Interfaces:
    org.h2gis.api.Function, org.h2gis.api.ScalarFunction

    public class ST_Centroid
    extends org.h2gis.api.DeterministicScalarFunction
    Computes 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 Detail

      • ST_Centroid

        public ST_Centroid()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • getCentroid

        public static org.locationtech.jts.geom.Geometry getCentroid​(org.locationtech.jts.geom.Geometry geometry)