Package org.teamapps.media.image
Klasse GeoTag
java.lang.Object
org.teamapps.media.image.GeoTag
Represents a four dimensional point where/when an photo was taken.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic doubledegreesToDecimal(double degs, double mins, double secs) Converts degrees-minutes-seconds into a single value in decimal degrees.doublelongdoubledoubleintvoidsetAltitude(double altitude) Sets the altitude value.voidSets the date from a String value.voidsetLatitude(double latitude) Sets the latitude value.voidsetLatitudeReference(String latitudeRef) Sets the hemisphere or reference for the latitude.voidsetLongitude(double longitude) Sets the longitude value.voidsetLongitudeReference(String longitudeRef) Sets the hemisphere or reference for the longitude.voidsetTime(double hour, double min, double sec) Sets the time for this GeoInfo Object.toString()
-
Konstruktordetails
-
GeoTag
public GeoTag()Default constructor with no parameters. Information is added through the set methods.
-
-
Methodendetails
-
getLatitude
public double getLatitude()- Gibt zurück:
- the latitude in decimal degrees.
-
getAltitude
public double getAltitude()- Gibt zurück:
- the Altitude of this location, in meters above sea level.
-
getDateInMillis
public long getDateInMillis()- Gibt zurück:
- the date as UTC milliseconds from the epoch.
-
getLongitude
public double getLongitude()- Gibt zurück:
- the longitude in decimal degrees.
-
getLatitudeReference
- Gibt zurück:
- If the Latitude is (N)orth or (S)outh.
-
getLongitudeReference
- Gibt zurück:
- If the Longitude is (E)ast or (W)est.
-
getTimestamp
- Gibt zurück:
- the timestamp as a string in the format yyyy-MM-dd'T'hh:mm:ssZ
-
getTimestampAsEpochSeconds
public int getTimestampAsEpochSeconds() -
degreesToDecimal
public static double degreesToDecimal(double degs, double mins, double secs) Converts degrees-minutes-seconds into a single value in decimal degrees.- Parameter:
degs-mins-secs-- Gibt zurück:
- Decimal degrees value from the degrees, minutes and seconds vals.
-
setAltitude
public void setAltitude(double altitude) Sets the altitude value.- Parameter:
altitude- In meters above sea level.
-
setDate
Sets the date from a String value.- Parameter:
date- Must be in year:mm:dd format.
-
setLatitude
public void setLatitude(double latitude) Sets the latitude value.- Parameter:
latitude- double value between -90 and 90.
-
setLatitudeReference
Sets the hemisphere or reference for the latitude.- Parameter:
latitudeRef- String value either "N" or "S".
-
setLongitude
public void setLongitude(double longitude) Sets the longitude value.- Parameter:
longitude- double value between -180 and 180.
-
setLongitudeReference
Sets the hemisphere or reference for the longitude.- Parameter:
longitudeRef- String value either "E" or "W".
-
setTime
public void setTime(double hour, double min, double sec) Sets the time for this GeoInfo Object.- Parameter:
hour- The hour in 24 hour format.min- The minute.sec- The second.
-
toString
-