Object
BBox

public class BBox extends Object
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 Details

    • BBox

      public BBox()
      Creates a new BBox with default values.
  • Method Details

    • getSouthLatitude

      public Double getSouthLatitude()
      Gets the south latitude of the bounding box.
      Returns:
      The south latitude
    • setSouthLatitude

      public void setSouthLatitude(Double southLatitude)
      Sets the south latitude of the bounding box.
      Parameters:
      southLatitude - The south latitude
    • getWestLongitude

      public Double getWestLongitude()
      Gets the west longitude of the bounding box.
      Returns:
      The west longitude
    • setWestLongitude

      public void setWestLongitude(Double westLongitude)
      Sets the west longitude of the bounding box.
      Parameters:
      westLongitude - The west longitude
    • getNorthLatitude

      public Double getNorthLatitude()
      Gets the north latitude of the bounding box.
      Returns:
      The north latitude
    • setNorthLatitude

      public void setNorthLatitude(Double northLatitude)
      Sets the north latitude of the bounding box.
      Parameters:
      northLatitude - The north latitude
    • getEastLongitude

      public Double getEastLongitude()
      Gets the east longitude of the bounding box.
      Returns:
      The east longitude
    • setEastLongitude

      public void setEastLongitude(Double eastLongitude)
      Sets the east longitude of the bounding box.
      Parameters:
      eastLongitude - The east longitude
    • toArray

      public Double[] toArray()
      Converts this BBox object to an array in the format [west, south, east, north].
      Returns:
      An array of coordinates