Class IntersectionMatrixPattern

java.lang.Object
org.locationtech.jts.operation.relateng.IntersectionMatrixPattern

public class IntersectionMatrixPattern extends Object
String constants for DE-9IM matrix patterns for topological relationships. These can be used with RelateNG.evaluate(org.locationtech.jts.geom.Geometry, String) and RelateNG.relate(org.locationtech.jts.geom.Geometry, org.locationtech.jts.geom.Geometry, String).

DE-9IM Pattern Matching

Matrix patterns are specified as a 9-character string containing the pattern symbols for the DE-9IM 3x3 matrix entries, listed row-wise. The pattern symbols are:
  • 0 - topological interaction has dimension 0
  • 1 - topological interaction has dimension 1
  • 2 - topological interaction has dimension 2
  • F - no topological interaction
  • T - topological interaction of any dimension
  • * - any topological interaction is allowed, including none
Author:
Martin Davis
  • Field Details

    • ADJACENT

      public static final String ADJACENT
      A DE-9IM pattern to detect whether two polygonal geometries are adjacent along an edge, but do not overlap.
      See Also:
    • CONTAINS_PROPERLY

      public static final String CONTAINS_PROPERLY
      A DE-9IM pattern to detect a geometry which properly contains another geometry (i.e. which lies entirely in the interior of the first geometry).
      See Also:
    • INTERIOR_INTERSECTS

      public static final String INTERIOR_INTERSECTS
      A DE-9IM pattern to detect if two geometries intersect in their interiors. This can be used to determine if a polygonal coverage contains any overlaps (although not whether they are correctly noded).
      See Also: