public class GeoLocationInfo
extends java.lang.Object
Constructor and Description |
---|
GeoLocationInfo()
Parameterless constructor for xml encoding.
|
GeoLocationInfo(double maxLat,
double minLon,
double minLat,
double maxLon)
Create a new GeoLocation
|
GeoLocationInfo(GeoLocationInfo that)
copy ctor
|
GeoLocationInfo(ucar.unidata.geoloc.LatLonRect llr)
ctor
|
GeoLocationInfo(java.awt.geom.Rectangle2D rect) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
equals
|
double |
getDegreesX()
Get the number of degrees from one side to the other in the X direction
|
double |
getDegreesY()
Get the number of degrees from one side to the other in the Y direction
|
ucar.unidata.geoloc.LatLonRect |
getLatLonRect()
Create a LatLonRect from me
|
ucar.unidata.geoloc.LatLonPoint |
getLowerRight()
Get lower right point
|
double |
getMaxLat()
Get the MaxLat property.
|
double |
getMaxLon()
Get the MaxLon property.
|
double |
getMinLat()
Get the MinLat property.
|
double |
getMinLon()
Get the MinLon property.
|
ucar.unidata.geoloc.LatLonPoint |
getUpperLeft()
Get the upper left point
|
void |
rectify(GeoLocationInfo that,
double minResolution)
Make sure wew are within the that with the given resolution.
|
void |
setMaxLat(double value)
Set the MaxLat property.
|
void |
setMaxLon(double value)
Set the MaxLon property.
|
void |
setMinLat(double value)
Set the MinLat property.
|
void |
setMinLon(double value)
Set the MinLon property.
|
void |
snapToGrid()
Snap corners to grid
|
java.lang.String |
toString()
Return a String representation of this
|
GeoLocationInfo |
union(GeoLocationInfo that)
Union with the other geolocationinfo
|
public GeoLocationInfo()
public GeoLocationInfo(GeoLocationInfo that)
that
- copy frompublic GeoLocationInfo(java.awt.geom.Rectangle2D rect)
public GeoLocationInfo(double maxLat, double minLon, double minLat, double maxLon)
maxLat
- The latitude of the upper leftminLon
- The longitude of the upper leftminLat
- The latitude of the lowermaxLon
- The longitude of the lower rightpublic GeoLocationInfo(ucar.unidata.geoloc.LatLonRect llr)
llr
- The latlonrect to create me frompublic GeoLocationInfo union(GeoLocationInfo that)
that
- object to union withpublic ucar.unidata.geoloc.LatLonRect getLatLonRect()
public ucar.unidata.geoloc.LatLonPoint getUpperLeft()
public ucar.unidata.geoloc.LatLonPoint getLowerRight()
public void snapToGrid()
public void rectify(GeoLocationInfo that, double minResolution)
that
- bounds to be withinminResolution
- min sizepublic double getDegreesX()
public double getDegreesY()
public void setMaxLat(double value)
value
- The new value for MaxLatpublic double getMaxLat()
public void setMinLon(double value)
value
- The new value for MinLonpublic double getMinLon()
public void setMinLat(double value)
value
- The new value for MinLatpublic double getMinLat()
public void setMaxLon(double value)
value
- The new value for MaxLonpublic double getMaxLon()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- obj