Class ST_Length

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

    public class ST_Length
    extends org.h2gis.api.DeterministicScalarFunction
    Compute the geometry length.
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_Length

        public ST_Length()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • getLength

        public static Double getLength​(org.locationtech.jts.geom.Geometry geometry)
        Parameters:
        geometry - Geometry instance or 0
        Returns:
        Geometry length for LineString or MultiLineString otherwise 0