GeoBoundingBox Class
- java.
lang. Object - com.
azure. core. models. GeoBoundingBox
- com.
Implements
public final class GeoBoundingBox
implements JsonSerializable<GeoBoundingBox>
Represents a geometric bounding box.
This class encapsulates a bounding box defined by west, south, east, and north coordinates, and optionally minimum and maximum altitude. It provides methods to access these properties.
This class is useful when you want to work with a bounding box in a geographic context. For example, you can use it to define the area of interest for a map view, or to specify the spatial extent of a geographic dataset.
Constructor Summary
| Constructor | Description |
|---|---|
| GeoBoundingBox(double west, double south, double east, double north) |
Constructs a bounding box. |
| GeoBoundingBox(double west, double south, double east, double north, double minAltitude, double maxAltitude) |
Constructs a bounding box. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean | equals(Object obj) |
|
static
Geo |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a GeoBoundingBox. |
| double |
getEast()
The east longitudinal boundary of the bounding box. |
| Double |
getMaxAltitude()
The maximum altitude boundary of the bounding box. |
| Double |
getMinAltitude()
The minimum altitude boundary of the bounding box. |
| double |
getNorth()
The north latitudinal boundary of the bounding box. |
| double |
getSouth()
The south latitudinal boundary of the bounding box. |
| double |
getWest()
The west longitudinal boundary of the bounding box. |
| int | hashCode() |
|
Json |
toJson(JsonWriter jsonWriter) |
| String | toString() |
Methods inherited from java.lang.Object
Constructor Details
GeoBoundingBox
public GeoBoundingBox(double west, double south, double east, double north)
Constructs a bounding box.
Parameters:
GeoBoundingBox
public GeoBoundingBox(double west, double south, double east, double north, double minAltitude, double maxAltitude)
Constructs a bounding box.
Parameters:
Method Details
equals
public boolean equals(Object obj)
Overrides:
GeoBoundingBox.equals(Object obj)Parameters:
fromJson
public static GeoBoundingBox fromJson(JsonReader jsonReader)
Reads a JSON stream into a GeoBoundingBox.
Parameters:
Returns:
Throws:
getEast
public double getEast()
The east longitudinal boundary of the bounding box.
Returns:
getMaxAltitude
public Double getMaxAltitude()
The maximum altitude boundary of the bounding box.
Returns:
getMinAltitude
public Double getMinAltitude()
The minimum altitude boundary of the bounding box.
Returns:
getNorth
public double getNorth()
The north latitudinal boundary of the bounding box.
Returns:
getSouth
public double getSouth()
The south latitudinal boundary of the bounding box.
Returns:
getWest
public double getWest()
The west longitudinal boundary of the bounding box.
Returns:
hashCode
public int hashCode()
Overrides:
GeoBoundingBox.hashCode()toJson
toString
public String toString()
Overrides:
GeoBoundingBox.toString()