Class SpatialPredicate
java.lang.Object
org.locationtech.spatial4j.SpatialPredicate
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpatialPredicateBounding box of the *indexed* shape, thenIntersects.static final SpatialPredicateBounding box of the *indexed* shape, thenIsWithin.static final SpatialPredicateMeets the "Covers" OGC definition (boundary-neutral).static final SpatialPredicateMeets the "Intersects" OGC definition.static final SpatialPredicateMeets the "Disjoint" OGC definition.static final SpatialPredicateMeets the "Equals" OGC definition.static final SpatialPredicateMeets the "CoveredBy" OGC definition (boundary-neutral).private static final List<SpatialPredicate> private final Stringstatic final SpatialPredicateAlmost meets the "Overlaps" OGC definition, but boundary-neutral (boundary==interior).private static final Map<String, SpatialPredicate> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanReturns whether the relationship between indexedShape and queryShape is satisfied by this operation.static SpatialPredicategetName()static booleanis(SpatialPredicate op, SpatialPredicate... tst) protected voidtoString()static List<SpatialPredicate> values()
-
Field Details
-
registry
-
list
-
BBoxIntersects
Bounding box of the *indexed* shape, thenIntersects. -
BBoxWithin
Bounding box of the *indexed* shape, thenIsWithin. -
Contains
Meets the "Covers" OGC definition (boundary-neutral). -
Intersects
Meets the "Intersects" OGC definition. -
IsEqualTo
Meets the "Equals" OGC definition. -
IsDisjointTo
Meets the "Disjoint" OGC definition. -
IsWithin
Meets the "CoveredBy" OGC definition (boundary-neutral). -
Overlaps
Almost meets the "Overlaps" OGC definition, but boundary-neutral (boundary==interior). -
name
-
-
Constructor Details
-
SpatialPredicate
-
-
Method Details
-
register
-
get
-
values
-
is
-
evaluate
-
getName
-
toString
-