Package ucar.unidata.geoloc
Interface EarthLocation
-
- All Known Subinterfaces:
Station
,StationFeature
,StationProfileFeature
,StationTimeSeriesFeature
- All Known Implementing Classes:
BufrConfig.BufrStation
,EarthLocationImpl
,GempakStation
,PointFeatureDatasetViewer.PointObsBean
,PointFeatureDatasetViewer.ProfileFeatureBean
,PointFeatureDatasetViewer.SectionFeatureBean
,PointFeatureDatasetViewer.StationBean
,PointFeatureDatasetViewer.TrajectoryFeatureBean
,StationFeatureImpl
,StationImpl
,StationImpl
,StationProfileFeatureImpl
,StationProfileFeatureImpl.StationProfileFeatureSubset
,StationRadialViewer.StationBean
,StationTimeSeriesFeatureImpl
,StationTimeSeriesFeatureImpl.StationFeatureSubset
public interface EarthLocation
A location on the earth, specified by lat, lon and optionally altitude.- Since:
- Feb 18, 2008
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static EarthLocation
create(double lat, double lon, double alt)
Standard way to create an EarthLocation.double
getAltitude()
Returns the altitude in some unit.double
getLatitude()
Returns the latitude in some unit.LatLonPoint
getLatLon()
Get the lat/lon locationdouble
getLongitude()
Returns the longitude in some unit.boolean
isMissing()
Are either lat or lon missing?
-
-
-
Method Detail
-
create
static EarthLocation create(double lat, double lon, double alt)
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.NaN
indicates "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
-
-