public abstract class SpatialPredicate extends Object implements Serializable
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.Modifier and Type | Field and Description |
---|---|
static SpatialPredicate |
BBoxIntersects
Bounding box of the *indexed* shape, then
Intersects . |
static SpatialPredicate |
BBoxWithin
Bounding box of the *indexed* shape, then
IsWithin . |
static SpatialPredicate |
Contains
Meets the "Covers" OGC definition (boundary-neutral).
|
static SpatialPredicate |
Intersects
Meets the "Intersects" OGC definition.
|
static SpatialPredicate |
IsDisjointTo
Meets the "Disjoint" OGC definition.
|
static SpatialPredicate |
IsEqualTo
Meets the "Equals" OGC definition.
|
static SpatialPredicate |
IsWithin
Meets the "CoveredBy" OGC definition (boundary-neutral).
|
static SpatialPredicate |
Overlaps
Almost meets the "Overlaps" OGC definition, but boundary-neutral (boundary==interior).
|
Modifier | Constructor and Description |
---|---|
protected |
SpatialPredicate(String name) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
evaluate(Shape indexedShape,
Shape queryShape)
Returns whether the relationship between indexedShape and queryShape is
satisfied by this operation.
|
static SpatialPredicate |
get(String v) |
String |
getName() |
static boolean |
is(SpatialPredicate op,
SpatialPredicate... tst) |
protected void |
register(String name) |
String |
toString() |
static List<SpatialPredicate> |
values() |
public static final SpatialPredicate BBoxIntersects
Intersects
.public static final SpatialPredicate BBoxWithin
IsWithin
.public static final SpatialPredicate Contains
public static final SpatialPredicate Intersects
public static final SpatialPredicate IsEqualTo
public static final SpatialPredicate IsDisjointTo
public static final SpatialPredicate IsWithin
public static final SpatialPredicate Overlaps
protected SpatialPredicate(String name)
protected void register(String name)
public static SpatialPredicate get(String v)
public static List<SpatialPredicate> values()
public static boolean is(SpatialPredicate op, SpatialPredicate... tst)
public abstract boolean evaluate(Shape indexedShape, Shape queryShape)
public String getName()
Copyright © 2020 LocationTech. All rights reserved.