de.fhg.igd.gps
Class GKCoordinate

java.lang.Object
  extended byde.fhg.igd.gps.GKCoordinate

public class GKCoordinate
extends Object

This class provides a Gauss Krueger coordinate, which consists of the latitude index for definition of the current local root and the corresponding x-value (german: "Rechtswert") and y-value (german: "Hochwert"). In addition to that, the altitude above mean sea level is part of the global coordinate.

Author:
Dennis Bartussek

Field Summary
private  double altitude_
           
private  int longitudeIndex_
           
private  double x_
           
private  double y_
           
 
Constructor Summary
GKCoordinate(int index, double x, double y)
           
GKCoordinate(int index, double x, double y, double altitude)
           
 
Method Summary
 double distanceTo(GKCoordinate gk)
           
 double getAltitude()
           
 int getLongitudeIndex()
           
 double getX()
           
 double getY()
           
static GKCoordinate parseCoordinate(String coordinate)
          Accept: "GK:(|°);[m];[m];[m]"
 String toString()
          Returns the string representation of this GKCoordinate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

longitudeIndex_

private int longitudeIndex_

x_

private double x_

y_

private double y_

altitude_

private double altitude_
Constructor Detail

GKCoordinate

public GKCoordinate(int index,
                    double x,
                    double y)

GKCoordinate

public GKCoordinate(int index,
                    double x,
                    double y,
                    double altitude)
Method Detail

parseCoordinate

public static GKCoordinate parseCoordinate(String coordinate)
Accept: "GK:(|°);[m];[m];[m]"


getLongitudeIndex

public int getLongitudeIndex()

getX

public double getX()

getY

public double getY()

getAltitude

public double getAltitude()

distanceTo

public double distanceTo(GKCoordinate gk)

toString

public String toString()
Returns the string representation of this GKCoordinate.

Returns:
the string representation of this GKCoordinate


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.