|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.earth.utils.GeoPosition
This class represents a geographical position. It is defined by two values: longitude and latitude. (DEG) The position can converted into a String. example: "E036°15,5´ N50°08,2´" Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
Field Summary | |
private double |
latitude_
latitude (deg) |
private double |
longitude_
longitude (deg) |
Constructor Summary | |
GeoPosition()
Creates an instance of this class (Lo=0,La=0). |
|
GeoPosition(double longitude,
double latitude)
Creates an instance of this class with the given values. |
Method Summary | |
double |
getLatitude()
Returns the latitude (deg) |
double |
getLongitude()
Returns the longitude (deg) |
String |
getString()
Converts the geoposition into a string ("E036°15,5´ N50°08,2´") |
static String |
getString(double longitude,
double latitude,
boolean degree)
Converts the given geoposition into a string ("E036°15,5´ N50°08,2´") |
void |
set(double longitude,
double latitude)
Sets the geoposition with the given values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private double longitude_
private double latitude_
Constructor Detail |
public GeoPosition()
public GeoPosition(double longitude, double latitude)
longitude
- Longitude (deg)latitude
- Latitude (deg)Method Detail |
public double getLongitude()
public double getLatitude()
public void set(double longitude, double latitude)
longitude
- Longitude (deg)latitude
- Latitude (deg)public String getString()
public static String getString(double longitude, double latitude, boolean degree)
longitude
- Longitudelatitude
- Latitude
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |