public class EarthLocationImpl extends Object implements EarthLocation
| Modifier and Type | Field and Description |
|---|---|
protected double |
alt |
protected double |
lat |
protected double |
lon |
| Modifier | Constructor and Description |
|---|---|
protected |
EarthLocationImpl() |
|
EarthLocationImpl(double lat,
double lon,
double alt) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
Returns the altitude in some unit.
|
double |
getLatitude()
Returns the latitude in some unit.
|
LatLonPoint |
getLatLon()
Get the lat/lon location
|
double |
getLongitude()
Returns the longitude in some unit.
|
boolean |
isMissing()
Are either lat or lon missing?
|
protected void |
setAltitude(double alt) |
protected void |
setLatitude(double lat) |
protected void |
setLongitude(double lon) |
String |
toString() |
protected EarthLocationImpl()
public EarthLocationImpl(double lat,
double lon,
double alt)
public double getLatitude()
EarthLocationgetLatitude in interface EarthLocationpublic double getLongitude()
EarthLocationgetLongitude in interface EarthLocationpublic double getAltitude()
EarthLocationEarthLocation was retrieved from a PointFeature
(via PointFeature.getLocation()), then the unit can be obtained by calling
pointFeature.getFeatureCollection().getAltUnits().getAltitude in interface EarthLocationDouble.NaN indicates "no altitude".public LatLonPoint getLatLon()
EarthLocationgetLatLon in interface EarthLocationpublic boolean isMissing()
EarthLocationisMissing in interface EarthLocationprotected void setLatitude(double lat)
protected void setLongitude(double lon)
protected void setAltitude(double alt)