net.agmodel.metsoap
Class GeographicalBox
java.lang.Object
|
+--net.agmodel.metsoap.GeographicalBox
- public class GeographicalBox
- extends Object
Represents a "rectangular" area of land using the northwest and southeast corners.
Conforms to the JavaBean pattern to ensure easy SOAP serialization.
Note that geographical boxes may straddle the International Dateline but should not straddle either pole.
Copyright (c)2002 National Agricultural Research Center
GeographicalBox
public GeographicalBox()
getNorthWest
public Location2D getNorthWest()
- Gets the northwestern corner of the rectangle.
- Returns:
- the "top left" point
getSouthEast
public Location2D getSouthEast()
- Gets the southeastern corner of the rectangle.
- Returns:
- "lower right" point
setNorthWest
public void setNorthWest(Location2D aLocation)
- Sets the northwestern corner of the rectangle.
- Parameters:
aLocation - the "upper left" point
setSouthEast
public void setSouthEast(Location2D aLocation)
- Sets the southeastern corner of the rectangle.
- Parameters:
aLocation - the "lower right" point