Class ST_DWithin

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

    public class ST_DWithin
    extends org.h2gis.api.DeterministicScalarFunction
    ST_DWithin returns true if the geometries are within the specified distance of one another.
    Author:
    Adam Gouge, Erwan Bocher
    • Constructor Detail

      • ST_DWithin

        public ST_DWithin()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • isWithinDistance

        public static Boolean isWithinDistance​(org.locationtech.jts.geom.Geometry geomA,
                                               org.locationtech.jts.geom.Geometry geomB,
                                               Double distance)
                                        throws SQLException
        Returns true if the geometries are within the specified distance of one another.
        Parameters:
        geomA - Geometry A
        geomB - Geometry B
        distance - Distance
        Returns:
        True if if the geometries are within the specified distance of one another
        Throws:
        SQLException