com.oziexplorer
Class Elevation
java.lang.Object
com.oziexplorer.Elevation
public class Elevation
- extends Object
This class is used for returning elevation data.
See OziAPI.getElevation(Position)
Copyright 2011 Alan Burlison, . All rights reserved.
Use is subject to license terms, see
LICENSE.txt.
position
protected final Position position
- lat, lon of the position.
altitude
protected final double altitude
- Altitude of the position.
fileName
protected final String fileName
- File the height data came from.
resolution
protected final String resolution
- Resolution of the height data.
equals
public boolean equals(Object that)
- Test if two elevations are equal. The position and altitude are
compared, the filename and resolution are not used.
- Overrides:
equals
in class Object
- Parameters:
that
- the object to compare against.
- Returns:
- true if the objects are equal.
hashCode
public int hashCode()
- Return the hash code for this object.
- Overrides:
hashCode
in class Object
- Returns:
- the hash code for this object.
getPosition
public Position getPosition()
- Return the
Position
the elevation data is for.
- Returns:
- the position.
getAltitude
public double getAltitude()
- Return the height at the position.
- Returns:
- the height at the posision.
getFileName
public String getFileName()
- Return the filename from which the height data came from.
- Returns:
- the filename from which the height data came from.
getResolution
public String getResolution()
- Return the resolusion of the height data.
- Returns:
- the resolution of the height data.