Class ST_Relate

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

    public class ST_Relate
    extends org.h2gis.api.DeterministicScalarFunction
    This function is used to compute the relation between two geometries, as described in the SFS specification. It can be used in two ways. First, if it is given two geometries,it returns a 9-character String representation of the 2 geometries IntersectionMatrix. If it is given two geometries and a IntersectionMatrix representation, it will return a boolean : true it the two geometries' IntersectionMatrix match the given one, false otherwise.
    Author:
    Nicolas Fortin
    • Constructor Detail

      • ST_Relate

        public ST_Relate()
        Default constructor
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • relate

        public static String relate​(org.locationtech.jts.geom.Geometry a,
                                    org.locationtech.jts.geom.Geometry b)
                             throws SQLException
        Parameters:
        a - Geometry Geometry.
        b - Geometry instance
        Returns:
        9-character String representation of the 2 geometries IntersectionMatrix
        Throws:
        SQLException
      • relate

        public static Boolean relate​(org.locationtech.jts.geom.Geometry a,
                                     org.locationtech.jts.geom.Geometry b,
                                     String iMatrix)
        Parameters:
        a - Geometry instance
        b - Geometry instance
        iMatrix - IntersectionMatrix representation
        Returns:
        true it the two geometries' IntersectionMatrix match the given one, false otherwise.