Package thredds.catalog.query
Class Location
- java.lang.Object
-
- thredds.catalog.query.Location
-
public class Location extends Object
Implementation of a DQC location element.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
Location
public Location(String latitude, String longitude, String elevation, String latitude_units, String longitude_units, String elevation_units)
Construct from fields in XML catalog.- Parameters:
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).
-
-
Method Detail
-
getLatitude
public double getLatitude()
-
getLongitude
public double getLongitude()
-
hasElevation
public boolean hasElevation()
-
getElevation
public double getElevation()
-
getLatitudeUnits
public String getLatitudeUnits()
-
isDefaultLatitudeUnits
public boolean isDefaultLatitudeUnits()
-
getLongitudeUnits
public String getLongitudeUnits()
-
isDefaultLongitudeUnits
public boolean isDefaultLongitudeUnits()
-
getElevationUnits
public String getElevationUnits()
-
isDefaultElevationUnits
public boolean isDefaultElevationUnits()
-
-