Class Geo3dRectangleShape
- java.lang.Object
-
- org.apache.lucene.spatial.spatial4j.Geo3dShape<GeoBBox>
-
- org.apache.lucene.spatial.spatial4j.Geo3dRectangleShape
-
- All Implemented Interfaces:
org.locationtech.spatial4j.shape.Rectangle,org.locationtech.spatial4j.shape.Shape
public class Geo3dRectangleShape extends Geo3dShape<GeoBBox> implements org.locationtech.spatial4j.shape.Rectangle
Specialization of aGeo3dShapewhich represents aRectangle.- 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 Geo3dRectangleShape(GeoBBox shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext)Geo3dRectangleShape(GeoBBox shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext, double minX, double maxX, double minY, double maxY)
-
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)org.locationtech.spatial4j.shape.PointgetCenter()booleangetCrossesDateLine()doublegetHeight()doublegetMaxX()doublegetMaxY()doublegetMinX()doublegetMinY()doublegetWidth()org.locationtech.spatial4j.shape.SpatialRelationrelateXRange(double minX, double maxX)org.locationtech.spatial4j.shape.SpatialRelationrelateYRange(double minY, double maxY)voidreset(double minX, double maxX, double minY, double maxY)-
Methods inherited from class org.apache.lucene.spatial.spatial4j.Geo3dShape
equals, getArea, getContext, hasArea, hashCode, isEmpty, relate, toString
-
-
-
-
Constructor Detail
-
Geo3dRectangleShape
public Geo3dRectangleShape(GeoBBox shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext, double minX, double maxX, double minY, double maxY)
-
Geo3dRectangleShape
public Geo3dRectangleShape(GeoBBox shape, org.locationtech.spatial4j.context.SpatialContext spatialcontext)
-
-
Method Detail
-
getCenter
public org.locationtech.spatial4j.shape.Point getCenter()
- Specified by:
getCenterin interfaceorg.locationtech.spatial4j.shape.Shape- Overrides:
getCenterin classGeo3dShape<GeoBBox>
-
reset
public void reset(double minX, double maxX, double minY, double maxY)- Specified by:
resetin interfaceorg.locationtech.spatial4j.shape.Rectangle
-
getBoundingBox
public org.locationtech.spatial4j.shape.Rectangle getBoundingBox()
- Specified by:
getBoundingBoxin interfaceorg.locationtech.spatial4j.shape.Shape- Overrides:
getBoundingBoxin classGeo3dShape<GeoBBox>
-
getWidth
public double getWidth()
- Specified by:
getWidthin interfaceorg.locationtech.spatial4j.shape.Rectangle
-
getHeight
public double getHeight()
- Specified by:
getHeightin interfaceorg.locationtech.spatial4j.shape.Rectangle
-
getMinX
public double getMinX()
- Specified by:
getMinXin interfaceorg.locationtech.spatial4j.shape.Rectangle
-
getMinY
public double getMinY()
- Specified by:
getMinYin interfaceorg.locationtech.spatial4j.shape.Rectangle
-
getMaxX
public double getMaxX()
- Specified by:
getMaxXin interfaceorg.locationtech.spatial4j.shape.Rectangle
-
getMaxY
public double getMaxY()
- Specified by:
getMaxYin interfaceorg.locationtech.spatial4j.shape.Rectangle
-
getCrossesDateLine
public boolean getCrossesDateLine()
- Specified by:
getCrossesDateLinein interfaceorg.locationtech.spatial4j.shape.Rectangle
-
relateYRange
public org.locationtech.spatial4j.shape.SpatialRelation relateYRange(double minY, double maxY)- Specified by:
relateYRangein interfaceorg.locationtech.spatial4j.shape.Rectangle
-
relateXRange
public org.locationtech.spatial4j.shape.SpatialRelation relateXRange(double minX, double maxX)- Specified by:
relateXRangein interfaceorg.locationtech.spatial4j.shape.Rectangle
-
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<GeoBBox>
-
-