Class ST_DistanceSphere

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

    public class ST_DistanceSphere
    extends org.h2gis.api.DeterministicScalarFunction
    For geometry type returns minimum distance in meters between two geometries
    Author:
    Michael MATUR
    • Constructor Detail

      • ST_DistanceSphere

        public ST_DistanceSphere()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • distanceSphere

        public static Double distanceSphere​(Connection connection,
                                            org.locationtech.jts.geom.Geometry a,
                                            org.locationtech.jts.geom.Geometry b)
                                     throws SQLException
        Parameters:
        connection - Connection instance or null
        a - Geometry instance or null
        b - Geometry instance or null
        Returns:
        minimum distance in meters between two geometries
        Throws:
        SQLException