Package ucar.unidata.geoloc
Interface EarthLocation
- All Known Subinterfaces:
Station
- All Known Implementing Classes:
EarthLocationImpl,StationImpl
public interface EarthLocation
A location on the earth, specified by lat, lon and optionally altitude.
- Since:
- Feb 18, 2008
-
Method Summary
Modifier and TypeMethodDescriptionstatic EarthLocationcreate(double lat, double lon, double alt) Standard way to create an EarthLocation.doubleReturns the altitude in some unit.doubleReturns the latitude in some unit.Get the lat/lon locationdoubleReturns the longitude in some unit.booleanAre either lat or lon missing?
-
Method Details
-
create
Standard way to create an EarthLocation. -
getLatitude
double getLatitude()Returns the latitude in some unit. The unit is very likely decimal degrees north, but we don't enforce that anywhere.- Returns:
- the latitude in some unit.
-
getLongitude
double getLongitude()Returns the longitude in some unit. The unit is very likely decimal degrees east, but we don't enforce that anywhere.- Returns:
- the longitude in some unit.
-
getAltitude
double getAltitude()Returns the altitude in some unit.- Returns:
- the altitude in some unit. A value of
Double.NaNindicates "no altitude".
-
getLatLon
LatLonPoint getLatLon()Get the lat/lon location- Returns:
- lat/lon location
-
isMissing
boolean isMissing()Are either lat or lon missing?- Returns:
- true if lat or lon is missing
-