|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.GeoUtils
public class GeoUtils
Earth-centric utilities
| Field Summary | |
|---|---|
static String |
addressToolTip
Address tooltip |
static String |
lastAddress
Keep around the last address |
| Method Summary | |
|---|---|
static LatLonPoint |
getLocationFromAddress(String address,
int[] master)
Look up the location of the given address |
static LatLonPoint |
getLocationOfAddress()
Prompt the user for a street address and try to find its location. |
static LatLonPoint |
getLocationOfAddress(JComponent extraComp)
Get the location of an address. |
static List |
getSavedAddresses()
Get saved addresses |
static void |
initAddressBox(JComboBox box)
Initialize the list of addresses in box |
static LinearLatLonSet |
latLonRectToSet(ucar.unidata.geoloc.LatLonRect rect)
Convert a LatLonRect to a LinearLatLonSet. |
static void |
main(String[] args)
Test main |
static double |
normalizeLongitude(double lonValue)
Normalize a longitude value to the range between -180 and 180. |
static double[] |
normalizeLongitude(double[] lonValues)
Normalize longitude values to the range between -180 and 180. |
static float[] |
normalizeLongitude(float[] lonValues)
Normalize longitude values to the range between -180 and 180. |
static double |
normalizeLongitude(Range lonRange,
double value)
Normalize a longitude between the range of the max/min |
static float |
normalizeLongitude(Range lonRange,
float value)
Normalize a longitude between the range of the max/min |
static double |
normalizeLongitude360(double lonValue)
Normalize a longitude value to the range between 0 and 360. |
static double[] |
normalizeLongitude360(double[] lonValues)
Normalize longitude values to the range between 0 and 360. |
static float[] |
normalizeLongitude360(float[] lonValues)
Normalize longitude values to the range between 0 and 360. |
static void |
setSavedAddresses(List add)
set saved addresses |
static EarthLocation |
toEarthLocation(LatLonPoint llp)
Create an EarthLocation with altitude 0 from the given llp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String lastAddress
public static final String addressToolTip
| Method Detail |
|---|
public static EarthLocation toEarthLocation(LatLonPoint llp)
throws VisADException,
RemoteException
llp - Location
RemoteException - On badness
VisADException - On badnesspublic static LatLonPoint getLocationOfAddress()
public static LinearLatLonSet latLonRectToSet(ucar.unidata.geoloc.LatLonRect rect)
throws VisADException
rect - the LatLonRect
VisADException - Problem creating the setpublic static LatLonPoint getLocationOfAddress(JComponent extraComp)
extraComp - the component to put the address in.
public static LatLonPoint getLocationFromAddress(String address,
int[] master)
address - The addressmaster - master
public static List getSavedAddresses()
public static void setSavedAddresses(List add)
add - list of addressespublic static void initAddressBox(JComboBox box)
box - the box to add to.public static void main(String[] args)
args - argspublic static double normalizeLongitude(double lonValue)
lonValue - longitude value to adjust (in degrees)
public static double[] normalizeLongitude(double[] lonValues)
lonValues - longitude values to adjust (in degrees)
public static double normalizeLongitude(Range lonRange,
double value)
lonRange - the range of the longitudevalue - the longitude value
return longitude normalized to range
public static float normalizeLongitude(Range lonRange,
float value)
lonRange - the range of the longitudevalue - the longitude value
return longitude normalized to rangepublic static float[] normalizeLongitude(float[] lonValues)
lonValues - longitude values to adjust (in degrees)
public static double normalizeLongitude360(double lonValue)
lonValue - longitude value to adjust (in degrees)
public static double[] normalizeLongitude360(double[] lonValues)
lonValues - longitude values to adjust (in degrees)
public static float[] normalizeLongitude360(float[] lonValues)
lonValues - longitude values to adjust (in degrees)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||