public class Location
extends java.lang.Object
Constructor and Description |
---|
Location(java.lang.String latitude,
java.lang.String longitude,
java.lang.String elevation,
java.lang.String latitude_units,
java.lang.String longitude_units,
java.lang.String elevation_units)
Construct from fields in XML catalog.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
double |
getElevation() |
java.lang.String |
getElevationUnits() |
double |
getLatitude() |
java.lang.String |
getLatitudeUnits() |
double |
getLongitude() |
java.lang.String |
getLongitudeUnits() |
boolean |
hasElevation() |
int |
hashCode()
Override Object.hashCode() to implement equals.
|
boolean |
isDefaultElevationUnits() |
boolean |
isDefaultLatitudeUnits() |
boolean |
isDefaultLongitudeUnits() |
java.lang.String |
toString() |
public Location(java.lang.String latitude, java.lang.String longitude, java.lang.String elevation, java.lang.String latitude_units, java.lang.String longitude_units, java.lang.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 java.lang.String getLatitudeUnits()
public boolean isDefaultLatitudeUnits()
public java.lang.String getLongitudeUnits()
public boolean isDefaultLongitudeUnits()
public java.lang.String getElevationUnits()
public boolean isDefaultElevationUnits()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object