Class Rectangle
java.lang.Object
org.springframework.data.elasticsearch.utils.geohash.Rectangle
- All Implemented Interfaces:
Geometry
Code copied from Elasticsearch 7.10, Apache License V2
https://github.com/elastic/elasticsearch/blob/7.10/libs/geo/src/main/java/org/elasticsearch/geometry/Rectangle.java
Represents a lat/lon rectangle in decimal degrees and optional altitude in meters.
Represents a lat/lon rectangle in decimal degrees and optional altitude in meters.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRectangle
(double minX, double maxX, double maxY, double minY) Constructs a bounding box by first validating the provided latitude and longitude coordinatesRectangle
(double minX, double maxX, double maxY, double minY, double minZ, double maxZ) Constructs a bounding box by first validating the provided latitude and longitude coordinates -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
double
double
double
getMaxX()
double
getMaxY()
double
getMaxZ()
double
double
double
double
getMinX()
double
getMinY()
double
getMinZ()
int
hashCode()
boolean
hasZ()
boolean
isEmpty()
toString()
type()
<T,
E extends Exception>
Tvisit
(GeometryVisitor<T, E> visitor)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Rectangle
public Rectangle(double minX, double maxX, double maxY, double minY) Constructs a bounding box by first validating the provided latitude and longitude coordinates -
Rectangle
public Rectangle(double minX, double maxX, double maxY, double minY, double minZ, double maxZ) Constructs a bounding box by first validating the provided latitude and longitude coordinates
-
-
Method Details
-
getMinY
public double getMinY() -
getMinX
public double getMinX() -
getMinZ
public double getMinZ() -
getMaxY
public double getMaxY() -
getMaxX
public double getMaxX() -
getMaxZ
public double getMaxZ() -
getMinLat
public double getMinLat() -
getMinLon
public double getMinLon() -
getMinAlt
public double getMinAlt() -
getMaxLat
public double getMaxLat() -
getMaxLon
public double getMaxLon() -
getMaxAlt
public double getMaxAlt() -
type
-
toString
-
equals
-
hashCode
public int hashCode() -
visit
-
isEmpty
public boolean isEmpty() -
hasZ
public boolean hasZ()
-