Package org.dlese.dpc.index.writer.xml
Class BoundingBox
java.lang.Object
org.dlese.dpc.index.writer.xml.BoundingBox
Struct used to hold geospatial bounding box lat lon coordinates.
- Author:
- John Weatherley
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox(double north, double south, double east, double west) Constructor for the BoundingBox object -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the eastCoord attribute of the BoundingBox objectdoubleGets the northCoord attribute of the BoundingBox objectdoubleGets the southCoord attribute of the BoundingBox objectdoubleGets the westCoord attribute of the BoundingBox objecttoString()String representation
-
Constructor Details
-
BoundingBox
public BoundingBox(double north, double south, double east, double west) throws IllegalArgumentException Constructor for the BoundingBox object- Parameters:
north- North latsouth- South lateast- East lonwest- 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
String representation
-