Class BBox
Object
BBox
Represents a bounding box in PROJJSON.
In PROJJSON v0.4, a bbox is represented as an object with south_latitude, west_longitude, north_latitude, and east_longitude properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the east longitude of the bounding box.Gets the north latitude of the bounding box.Gets the south latitude of the bounding box.Gets the west longitude of the bounding box.voidsetEastLongitude(Double eastLongitude) Sets the east longitude of the bounding box.voidsetNorthLatitude(Double northLatitude) Sets the north latitude of the bounding box.voidsetSouthLatitude(Double southLatitude) Sets the south latitude of the bounding box.voidsetWestLongitude(Double westLongitude) Sets the west longitude of the bounding box.Double[]toArray()Converts this BBox object to an array in the format [west, south, east, north].
-
Constructor Details
-
BBox
public BBox()Creates a new BBox with default values.
-
-
Method Details
-
getSouthLatitude
Gets the south latitude of the bounding box.- Returns:
- The south latitude
-
setSouthLatitude
Sets the south latitude of the bounding box.- Parameters:
southLatitude- The south latitude
-
getWestLongitude
Gets the west longitude of the bounding box.- Returns:
- The west longitude
-
setWestLongitude
Sets the west longitude of the bounding box.- Parameters:
westLongitude- The west longitude
-
getNorthLatitude
Gets the north latitude of the bounding box.- Returns:
- The north latitude
-
setNorthLatitude
Sets the north latitude of the bounding box.- Parameters:
northLatitude- The north latitude
-
getEastLongitude
Gets the east longitude of the bounding box.- Returns:
- The east longitude
-
setEastLongitude
Sets the east longitude of the bounding box.- Parameters:
eastLongitude- The east longitude
-
toArray
Converts this BBox object to an array in the format [west, south, east, north].- Returns:
- An array of coordinates
-