Class SpatialOperation

  • All Implemented Interfaces:

    public abstract class SpatialOperation
    extends Object
    implements Serializable
    A predicate that compares a stored geometry to a supplied geometry. It's enum-like. For more explanation of each predicate, consider looking at the source implementation of #evaluate(org.locationtech.spatial4j.shape.Shape, org.locationtech.spatial4j.shape.Shape). It's important to be aware that Lucene-spatial makes no distinction of shape boundaries, unlike many standardized definitions. Nor does it make dimensional distinctions (e.g. line vs polygon). You can lookup a predicate by "Covers" or "Contains", for example, and you will get the same underlying predicate implementation.
    See Also:
    DE-9IM at Wikipedia, based on OGC specs, ESRIs docs on spatial relations, Serialized Form