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