Klasse GeoTag

java.lang.Object
org.teamapps.media.image.GeoTag

public final class GeoTag extends Object
Represents a four dimensional point where/when an photo was taken.
  • 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

      public String getLatitudeReference()
      Gibt zurück:
      If the Latitude is (N)orth or (S)outh.
    • getLongitudeReference

      public String getLongitudeReference()
      Gibt zurück:
      If the Longitude is (E)ast or (W)est.
    • getTimestamp

      public String 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

      public void setDate(String date)
      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

      public void setLatitudeReference(String latitudeRef)
      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

      public void setLongitudeReference(String longitudeRef)
      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

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      a string representation of this GeoInfo object.