Package ucar.unidata.geoloc
Class EarthLocation
- java.lang.Object
-
- ucar.unidata.geoloc.EarthLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EarthLocation
create(double lat, double lon, double alt)
Create an EarthLocation.static EarthLocation
create(double lat, double lon, double alt, String altUnits)
Create an EarthLocation.boolean
equals(Object o)
double
getAltitude()
Returns the altitude in some unit.String
getAltitudeUnits()
Returns the units of the altitude.double
getLatitude()
The latitude in decimal degrees north.LatLonPoint
getLatLon()
Get the lat/lon as a LatLonPoint.double
getLongitude()
The longitude in decimal degrees east.int
hashCode()
boolean
isMissing()
Are either lat or lon missing?
-
-
-
Method Detail
-
create
public static EarthLocation create(double lat, double lon, double alt)
Create an EarthLocation.- Parameters:
lat
- latitude in decimal degrees north.lon
- longitude in decimal degrees north.alt
- altitude in meters above the reference surface.
-
create
public static EarthLocation create(double lat, double lon, double alt, String altUnits)
Create an EarthLocation.- Parameters:
lat
- latitude in decimal degrees north.lon
- longitude in decimal degrees north.alt
- altitude in meters above the reference surface.altUnits
- units of the altitude.
-
getLatitude
public double getLatitude()
The latitude in decimal degrees north.
-
getLongitude
public double getLongitude()
The longitude in decimal degrees east.
-
getAltitude
public double getAltitude()
Returns the altitude in some unit. A value ofDouble.NaN
indicates "no altitude".
-
getAltitudeUnits
@Nullable public String getAltitudeUnits()
Returns the units of the altitude. A null value means "no altitude".
-
getLatLon
public LatLonPoint getLatLon()
Get the lat/lon as a LatLonPoint.
-
isMissing
public boolean isMissing()
Are either lat or lon missing?
-
-