de.fhg.igd.gps
Class GKCoordinate
java.lang.Object
de.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
Constructor Summary |
GKCoordinate(int index,
double x,
double y)
|
GKCoordinate(int index,
double x,
double y,
double altitude)
|
longitudeIndex_
private int longitudeIndex_
x_
private double x_
y_
private double y_
altitude_
private double altitude_
GKCoordinate
public GKCoordinate(int index,
double x,
double y)
GKCoordinate
public GKCoordinate(int index,
double x,
double y,
double altitude)
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.