public class Location extends Object
Constructor and Description |
---|
Location(String latitude,
String longitude,
String elevation,
String latitude_units,
String longitude_units,
String elevation_units)
Construct from fields in XML catalog.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getElevation() |
String |
getElevationUnits() |
double |
getLatitude() |
String |
getLatitudeUnits() |
double |
getLongitude() |
String |
getLongitudeUnits() |
boolean |
hasElevation() |
int |
hashCode()
Override Object.hashCode() to implement equals.
|
boolean |
isDefaultElevationUnits() |
boolean |
isDefaultLatitudeUnits() |
boolean |
isDefaultLongitudeUnits() |
String |
toString() |
public Location(String latitude, String longitude, String elevation, String latitude_units, String longitude_units, String elevation_units)
latitude
- : the latitude of the location.longitude
- : the latitude of the location.elevation
- : the elevation of the location (optional)latitude_units
- : the units of latitude (optional, default degrees_north).longitude_units
- : the units of longitude (optional, default degrees_east).elevation_units
- : the units of elevation (optional, default meters).public double getLatitude()
public double getLongitude()
public boolean hasElevation()
public double getElevation()
public String getLatitudeUnits()
public boolean isDefaultLatitudeUnits()
public String getLongitudeUnits()
public boolean isDefaultLongitudeUnits()
public String getElevationUnits()
public boolean isDefaultElevationUnits()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.