Uses of Enum
org.locationtech.spatial4j.shape.SpatialRelation
Packages that use SpatialRelation
Package
Description
Shapes are the core geometry objects that Spatial4j provides.
-
Uses of SpatialRelation in org.locationtech.spatial4j.shape
Methods in org.locationtech.spatial4j.shape that return SpatialRelationModifier and TypeMethodDescriptionSpatialRelation.combine
(SpatialRelation other) If you were to call aShape.relate(bShape) and aShape.relate(cShape), you could call this to merge the intersect results as if bShape & cShape were combined intoShapeCollection
.SpatialRelation.inverse()
IfaShape.relate(bShape)
is r, thenr.inverse()
isinverse(aShape).relate(bShape)
whereasinverse(shape)
is theoretically the opposite area covered by a shape, i.e.Describe the relationship between the two objects.Rectangle.relateXRange
(double minX, double maxX) A specialization ofShape.relate(Shape)
for a horizontal line.Rectangle.relateYRange
(double minY, double maxY) A specialization ofShape.relate(Shape)
for a vertical line.SpatialRelation.transpose()
Given the result ofshapeA.relate(shapeB)
, transposing that result should yield the result ofshapeB.relate(shapeA)
.static SpatialRelation
Returns the enum constant of this type with the specified name.static SpatialRelation[]
SpatialRelation.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.locationtech.spatial4j.shape with parameters of type SpatialRelationModifier and TypeMethodDescriptionSpatialRelation.combine
(SpatialRelation other) If you were to call aShape.relate(bShape) and aShape.relate(cShape), you could call this to merge the intersect results as if bShape & cShape were combined intoShapeCollection
. -
Uses of SpatialRelation in org.locationtech.spatial4j.shape.impl
Methods in org.locationtech.spatial4j.shape.impl that return SpatialRelationModifier and TypeMethodDescription(package private) SpatialRelation
private static SpatialRelation
RectangleImpl.relate_range
(double int_min, double int_max, double ext_min, double ext_max) private SpatialRelation
GeoCircle.relateRectangleCircleWrapsPole
(Rectangle r, SpatialContext ctx) protected SpatialRelation
CircleImpl.relateRectanglePhase2
(Rectangle r, SpatialRelation bboxSect) protected SpatialRelation
GeoCircle.relateRectanglePhase2
(Rectangle r, SpatialRelation bboxSect) Called after bounding box is intersected.RectangleImpl.relateXRange
(double ext_minX, double ext_maxX) RectangleImpl.relateYRange
(double ext_minY, double ext_maxY) Methods in org.locationtech.spatial4j.shape.impl with parameters of type SpatialRelationModifier and TypeMethodDescriptionprotected SpatialRelation
CircleImpl.relateRectanglePhase2
(Rectangle r, SpatialRelation bboxSect) protected SpatialRelation
GeoCircle.relateRectanglePhase2
(Rectangle r, SpatialRelation bboxSect) Called after bounding box is intersected. -
Uses of SpatialRelation in org.locationtech.spatial4j.shape.jts
Methods in org.locationtech.spatial4j.shape.jts that return SpatialRelationModifier and TypeMethodDescriptionstatic SpatialRelation
JtsGeometry.intersectionMatrixToSpatialRelation
(org.locationtech.jts.geom.IntersectionMatrix matrix) protected SpatialRelation
JtsGeometry.relate
(org.locationtech.jts.geom.Geometry oGeom) JtsGeometry.relate
(JtsGeometry jtsGeometry)