com.oziexplorer
Class Elevation

java.lang.Object
  extended by 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.
SourceForge.net


Field Summary
protected  double altitude
          Altitude of the position.
protected  String fileName
          File the height data came from.
protected  Position position
          lat, lon of the position.
protected  String resolution
          Resolution of the height data.
 
Method Summary
 boolean equals(Object that)
          Test if two elevations are equal.
 double getAltitude()
          Return the height at the position.
 String getFileName()
          Return the filename from which the height data came from.
 Position getPosition()
          Return the Position the elevation data is for.
 String getResolution()
          Return the resolusion of the height data.
 int hashCode()
          Return the hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Method Detail

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.