Class ST_Distance

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

    public class ST_Distance
    extends org.h2gis.api.DeterministicScalarFunction
    For geometry type returns the 2-dimensional minimum Cartesian distance between two geometries in projected units (spatial ref units)
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_Distance

        public ST_Distance()
        Default constructor
    • 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 null
        b - Geometry instance or null
        Returns:
        the 2-dimensional minimum Cartesian distance between two geometries in projected units (spatial ref units)
        Throws:
        SQLException