Package de.kappich.pat.gnd.coorTransform
Class UTMCoordinate
- java.lang.Object
-
- de.kappich.pat.gnd.coorTransform.UTMCoordinate
-
public class UTMCoordinate extends java.lang.ObjectEine Klasse für UTM-Koordinaten.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUTMCoordinate.UTMHemisphereEine Enumeration zur Verkapselung der zwei Halbkugeln.
-
Constructor Summary
Constructors Constructor Description UTMCoordinate()Konstruktor ohne Wertevorgaben.UTMCoordinate(double x, double y, int zone)Konstruktor für eine UTM-Koordinate auf der nördlichen Erdhalbkugel.UTMCoordinate(double x, double y, int zone, UTMCoordinate.UTMHemisphere hemisphere)Konstruktor für eine UTM-Koordinate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UTMCoordinate.UTMHemispheregetHemisphere()Gibt die Hemisphäre zurück.doublegetX()Gibt die x-Koordinate zurück, die auch als Ostwert bezeichnet wird.doublegetY()Gibt die y-Koordinate zurück, die auch als Nordwert bezeichnet wird.intgetZone()Gibt die UTM-Zone zurück.voidsetHemisphere(UTMCoordinate.UTMHemisphere hemisphere)Setzt die Hemisphäre.voidsetX(double x)Setzt den x-Koordinate, die auch als Ostwert bezeichnet wird.voidsetY(double y)Setzt den y-Koordinate, die auch als Nordwert bezeichnet wird.voidsetZone(int zone)Setzt die Zone.java.lang.StringtoString()
-
-
-
Constructor Detail
-
UTMCoordinate
public UTMCoordinate()
Konstruktor ohne Wertevorgaben.
-
UTMCoordinate
public UTMCoordinate(double x, double y, int zone)Konstruktor für eine UTM-Koordinate auf der nördlichen Erdhalbkugel.- Parameters:
x- der x- oder Ostwerty- der y- oder Nordwertzone- die UTM-Zone
-
UTMCoordinate
public UTMCoordinate(double x, double y, int zone, UTMCoordinate.UTMHemisphere hemisphere)Konstruktor für eine UTM-Koordinate.- Parameters:
x- der x- oder Ostwerty- der y- oder Nordwertzone- die UTM-Zonehemisphere- die Hemisphäre
-
-
Method Detail
-
getHemisphere
public UTMCoordinate.UTMHemisphere getHemisphere()
Gibt die Hemisphäre zurück.- Returns:
- gibt die Hemisphäre zurück
-
setHemisphere
public void setHemisphere(UTMCoordinate.UTMHemisphere hemisphere)
Setzt die Hemisphäre.- Parameters:
hemisphere- die Hemisphäre
-
getX
public double getX()
Gibt die x-Koordinate zurück, die auch als Ostwert bezeichnet wird.- Returns:
- gibt die x-Koordinate oder Ostwert zurück
-
setX
public void setX(double x)
Setzt den x-Koordinate, die auch als Ostwert bezeichnet wird.- Parameters:
x- die neue x-Koordinate bzw. Ostwert
-
getY
public double getY()
Gibt die y-Koordinate zurück, die auch als Nordwert bezeichnet wird.- Returns:
- gibt die y-Koordinate bzw. Nordwert zurück
-
setY
public void setY(double y)
Setzt den y-Koordinate, die auch als Nordwert bezeichnet wird.- Parameters:
y- die neue y-Koordinate bzw. Nordwert
-
getZone
public int getZone()
Gibt die UTM-Zone zurück.- Returns:
- gibt die UTM-Zone zurück
-
setZone
public void setZone(int zone)
Setzt die Zone.- Parameters:
zone- die neue UTM-Zone
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-