Class Geo3dPointShape
- java.lang.Object
-
- org.apache.lucene.spatial.spatial4j.Geo3dShape<GeoPointShape>
-
- org.apache.lucene.spatial.spatial4j.Geo3dPointShape
-
- All Implemented Interfaces:
org.locationtech.spatial4j.shape.Point,org.locationtech.spatial4j.shape.Shape
public class Geo3dPointShape extends Geo3dShape<GeoPointShape> implements org.locationtech.spatial4j.shape.Point
Specialization of aGeo3dShapewhich represents aPoint.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.spatial.spatial4j.Geo3dShape
boundingBox, center, shape, spatialcontext
-
-
Constructor Summary
Constructors Constructor Description Geo3dPointShape(GeoPointShape shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.spatial4j.shape.RectanglegetBoundingBox()org.locationtech.spatial4j.shape.ShapegetBuffered(double distance, org.locationtech.spatial4j.context.SpatialContext spatialContext)doublegetX()doublegetY()booleanhasArea()voidreset(double x, double y)-
Methods inherited from class org.apache.lucene.spatial.spatial4j.Geo3dShape
equals, getArea, getCenter, getContext, hashCode, isEmpty, relate, toString
-
-
-
-
Constructor Detail
-
Geo3dPointShape
public Geo3dPointShape(GeoPointShape shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext)
-
-
Method Detail
-
reset
public void reset(double x, double y)- Specified by:
resetin interfaceorg.locationtech.spatial4j.shape.Point
-
getX
public double getX()
- Specified by:
getXin interfaceorg.locationtech.spatial4j.shape.Point
-
getY
public double getY()
- Specified by:
getYin interfaceorg.locationtech.spatial4j.shape.Point
-
getBoundingBox
public org.locationtech.spatial4j.shape.Rectangle getBoundingBox()
- Specified by:
getBoundingBoxin interfaceorg.locationtech.spatial4j.shape.Shape- Overrides:
getBoundingBoxin classGeo3dShape<GeoPointShape>
-
getBuffered
public org.locationtech.spatial4j.shape.Shape getBuffered(double distance, org.locationtech.spatial4j.context.SpatialContext spatialContext)- Specified by:
getBufferedin interfaceorg.locationtech.spatial4j.shape.Shape- Overrides:
getBufferedin classGeo3dShape<GeoPointShape>
-
hasArea
public boolean hasArea()
- Specified by:
hasAreain interfaceorg.locationtech.spatial4j.shape.Shape- Overrides:
hasAreain classGeo3dShape<GeoPointShape>
-
-