Interface SpatialRelation


  • public interface SpatialRelation
    Enumerates the supported spatial relations.

    Most of these relations are defined in "OpenGIS Simple Features Specification for SQL, rev. 1.1 (OGC 99-049), section 2.1.13.3. "

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONTAINS
      The first geometry spatially contains the second
      static int CROSSES
      The geometries cross
      static int DISJOINT
      The geometries are spatially dijoint
      static int EQUALS
      The geometries are spatially equal to each other.
      static int FILTER
      The bounding box of the first geometry intersects the bounding box of the second
      static int INTERSECTS
      The first geometry intersects the second
      static int OVERLAPS
      The geometries spatially overlap
      static int TOUCHES
      The geometries touch
      static int WITHIN
      The first geometry is spatially within the second
    • Field Detail

      • EQUALS

        static final int EQUALS
        The geometries are spatially equal to each other.
        See Also:
        Constant Field Values
      • DISJOINT

        static final int DISJOINT
        The geometries are spatially dijoint
        See Also:
        Constant Field Values
      • WITHIN

        static final int WITHIN
        The first geometry is spatially within the second
        See Also:
        Constant Field Values
      • CONTAINS

        static final int CONTAINS
        The first geometry spatially contains the second
        See Also:
        Constant Field Values
      • INTERSECTS

        static final int INTERSECTS
        The first geometry intersects the second
        See Also:
        Constant Field Values
      • FILTER

        static final int FILTER
        The bounding box of the first geometry intersects the bounding box of the second

        This relation is not defined in OGC 99-049, it corresponds to the Postgis '&&' operator.

        See Also:
        Constant Field Values