Class BoundingBox


  • public class BoundingBox
    extends Bounding
    The maximum number of BoundedBoxes for a single coordinate is 4.
    lat = 90,-90, long = 180, -180 with any boundary the result is 4 Bounded Boxes.

    The bounded boxes must adhere to the following constraints:
    There are four points. Latitude: 90 to 0 to -90
    Longitude: 180 to 0 -180
    • Field Detail

      • minLatitude

        public java.lang.Double minLatitude
      • maxLatitude

        public java.lang.Double maxLatitude
      • minLongitude

        public java.lang.Double minLongitude
      • maxLongitude

        public java.lang.Double maxLongitude
    • Constructor Detail

      • BoundingBox

        public BoundingBox()
    • Method Detail

      • getMinLatitude

        public java.lang.Double getMinLatitude()
      • getMaxLatitude

        public java.lang.Double getMaxLatitude()
      • getMinLongitude

        public java.lang.Double getMinLongitude()
      • getMaxLongitude

        public java.lang.Double getMaxLongitude()
      • setMinLatitude

        protected void setMinLatitude​(java.lang.Double minLatitude)
      • setMaxLatitude

        protected void setMaxLatitude​(java.lang.Double maxLatitude)
      • setMinLongitude

        protected void setMinLongitude​(java.lang.Double minLongitude)
      • setMaxLongitude

        protected void setMaxLongitude​(java.lang.Double maxLongitude)
      • validate

        public void validate()
        Description copied from class: Bounding
        validates the Longitude and Latitude is valid for the Bounding area.
        Specified by:
        validate in class Bounding
      • getDataPoints

        public java.util.List<java.lang.Double> getDataPoints()
        Description copied from class: Bounding
        gets the coordinates in an ordered list
        Specified by:
        getDataPoints in class Bounding
        Returns:
      • getType

        public BoundingType getType()
        Description copied from class: Bounding
        returns the bounding type - radius or box.
        Specified by:
        getType in class Bounding
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object