Package org.locationtech.spatial4j
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 SpatialPredicate
Bounding box of the *indexed* shape, thenIntersects
.static final SpatialPredicate
Bounding box of the *indexed* shape, thenIsWithin
.static final SpatialPredicate
Meets the "Covers" OGC definition (boundary-neutral).static final SpatialPredicate
Meets the "Intersects" OGC definition.static final SpatialPredicate
Meets the "Disjoint" OGC definition.static final SpatialPredicate
Meets the "Equals" OGC definition.static final SpatialPredicate
Meets the "CoveredBy" OGC definition (boundary-neutral).private static final List
<SpatialPredicate> private final String
static final SpatialPredicate
Almost meets the "Overlaps" OGC definition, but boundary-neutral (boundary==interior).private static final Map
<String, SpatialPredicate> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Returns whether the relationship between indexedShape and queryShape is satisfied by this operation.static SpatialPredicate
getName()
static boolean
is
(SpatialPredicate op, SpatialPredicate... tst) protected void
toString()
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