Class BoundingBox

java.lang.Object
org.dlese.dpc.index.writer.xml.BoundingBox

public class BoundingBox extends Object
Struct used to hold geospatial bounding box lat lon coordinates.
Author:
John Weatherley
  • Constructor Summary

    Constructors
    Constructor
    Description
    BoundingBox(double north, double south, double east, double west)
    Constructor for the BoundingBox object
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the eastCoord attribute of the BoundingBox object
    double
    Gets the northCoord attribute of the BoundingBox object
    double
    Gets the southCoord attribute of the BoundingBox object
    double
    Gets the westCoord attribute of the BoundingBox object
    String representation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BoundingBox

      public BoundingBox(double north, double south, double east, double west) throws IllegalArgumentException
      Constructor for the BoundingBox object
      Parameters:
      north - North lat
      south - South lat
      east - East lon
      west - West lon
      Throws:
      IllegalArgumentException
  • Method Details

    • getNorthCoord

      public double getNorthCoord()
      Gets the northCoord attribute of the BoundingBox object
      Returns:
      The northCoord value
    • getSouthCoord

      public double getSouthCoord()
      Gets the southCoord attribute of the BoundingBox object
      Returns:
      The southCoord value
    • getEastCoord

      public double getEastCoord()
      Gets the eastCoord attribute of the BoundingBox object
      Returns:
      The eastCoord value
    • getWestCoord

      public double getWestCoord()
      Gets the westCoord attribute of the BoundingBox object
      Returns:
      The westCoord value
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class Object
      Returns:
      String for BoundinBox