ucar.nc2.dt
Class EarthLocationImpl
java.lang.Object
ucar.nc2.dt.EarthLocationImpl
- All Implemented Interfaces:
- EarthLocation
- Direct Known Subclasses:
- StationImpl
public class EarthLocationImpl
- extends java.lang.Object
- implements EarthLocation
Concrete implementaion of a EarthLocation.
- Author:
- caron
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EarthLocationImpl
public EarthLocationImpl()
EarthLocationImpl
public EarthLocationImpl(double lat,
double lon,
double alt)
getLatitude
public double getLatitude()
- Specified by:
getLatitude in interface EarthLocation
- Returns:
- latitude in decimal degrees north
getLongitude
public double getLongitude()
- Specified by:
getLongitude in interface EarthLocation
- Returns:
- longitude in decimal degrees east
getAltitude
public double getAltitude()
- Specified by:
getAltitude in interface EarthLocation
- Returns:
- altitude in meters; missing = NaN.
setLatitude
public void setLatitude(double lat)
setLongitude
public void setLongitude(double lon)
setAltitude
public void setAltitude(double alt)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object