Package org.elasticsearch.geo.geometry
Class Rectangle
- java.lang.Object
-
- org.elasticsearch.geo.geometry.Rectangle
-
-
Constructor Summary
Constructors Constructor Description Rectangle(double minLat, double maxLat, double minLon, double maxLon)
Constructs a bounding box by first validating the provided latitude and longitude coordinates
-
Method Summary
Modifier and Type Method Description boolean
crossesDateline()
Returns true if this bounding box crosses the datelineboolean
equals(java.lang.Object o)
double
getHeight()
double
getMaxLat()
double
getMaxLon()
double
getMinLat()
double
getMinLon()
double
getWidth()
int
hashCode()
boolean
isEmpty()
java.lang.String
toString()
ShapeType
type()
<T> T
visit(GeometryVisitor<T> visitor)
-
-
-
Field Detail
-
EMPTY
public static final Rectangle EMPTY
-
-
Method Detail
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
getMinLat
public double getMinLat()
-
getMinLon
public double getMinLon()
-
getMaxLat
public double getMaxLat()
-
getMaxLon
public double getMaxLon()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
crossesDateline
public boolean crossesDateline()
Returns true if this bounding box crosses the dateline
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
visit
public <T> T visit(GeometryVisitor<T> visitor)
-
-