Class Geo3dShape<T extends GeoAreaShape>
- java.lang.Object
-
- org.apache.lucene.spatial.spatial4j.Geo3dShape<T>
-
- Type Parameters:
T- is the type ofGeoAreaShape
- All Implemented Interfaces:
org.locationtech.spatial4j.shape.Shape
- Direct Known Subclasses:
Geo3dCircleShape,Geo3dPointShape,Geo3dRectangleShape
public class Geo3dShape<T extends GeoAreaShape> extends Object implements org.locationtech.spatial4j.shape.Shape
A Spatial4j Shape wrapping aGeoAreaShape("Geo3D") -- a 3D planar geometry based Spatial4j Shape implementation. Geo3D implements shapes on the surface of a sphere or ellipsoid.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.locationtech.spatial4j.shape.RectangleboundingBoxprotected org.locationtech.spatial4j.shape.Pointcenterprotected Tshapeprotected org.locationtech.spatial4j.context.SpatialContextspatialcontext
-
Constructor Summary
Constructors Constructor Description Geo3dShape(T shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)doublegetArea(org.locationtech.spatial4j.context.SpatialContext spatialContext)org.locationtech.spatial4j.shape.RectanglegetBoundingBox()org.locationtech.spatial4j.shape.ShapegetBuffered(double distance, org.locationtech.spatial4j.context.SpatialContext spatialContext)org.locationtech.spatial4j.shape.PointgetCenter()org.locationtech.spatial4j.context.SpatialContextgetContext()booleanhasArea()inthashCode()booleanisEmpty()org.locationtech.spatial4j.shape.SpatialRelationrelate(org.locationtech.spatial4j.shape.Shape other)StringtoString()
-
-
-
Field Detail
-
spatialcontext
protected final org.locationtech.spatial4j.context.SpatialContext spatialcontext
-
shape
protected T extends GeoAreaShape shape
-
boundingBox
protected volatile org.locationtech.spatial4j.shape.Rectangle boundingBox
-
center
protected volatile org.locationtech.spatial4j.shape.Point center
-
-
Constructor Detail
-
Geo3dShape
public Geo3dShape(T shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext)
-
-
Method Detail
-
relate
public org.locationtech.spatial4j.shape.SpatialRelation relate(org.locationtech.spatial4j.shape.Shape other)
- Specified by:
relatein interfaceorg.locationtech.spatial4j.shape.Shape
-
getBoundingBox
public org.locationtech.spatial4j.shape.Rectangle getBoundingBox()
- Specified by:
getBoundingBoxin interfaceorg.locationtech.spatial4j.shape.Shape
-
hasArea
public boolean hasArea()
- Specified by:
hasAreain interfaceorg.locationtech.spatial4j.shape.Shape
-
getArea
public double getArea(org.locationtech.spatial4j.context.SpatialContext spatialContext)
- Specified by:
getAreain interfaceorg.locationtech.spatial4j.shape.Shape
-
getCenter
public org.locationtech.spatial4j.shape.Point getCenter()
- Specified by:
getCenterin interfaceorg.locationtech.spatial4j.shape.Shape
-
getBuffered
public org.locationtech.spatial4j.shape.Shape getBuffered(double distance, org.locationtech.spatial4j.context.SpatialContext spatialContext)- Specified by:
getBufferedin interfaceorg.locationtech.spatial4j.shape.Shape
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.locationtech.spatial4j.shape.Shape
-
getContext
public org.locationtech.spatial4j.context.SpatialContext getContext()
- Specified by:
getContextin interfaceorg.locationtech.spatial4j.shape.Shape
-
equals
public boolean equals(Object o)
-
-