Klasse GpsRec

java.lang.Object
de.zocher_regel.photo.gps.GpsRec

final class GpsRec extends Object
A class for GPS info (time, latitude, longitude ...) All attributes are visible and may be changed from outside.
  • Felddetails

    • artistOpt

      Optional<String> artistOpt
      EXIF Artist.
    • dateTimeOptL

      OptionalLong dateTimeOptL
      The time when the photo was taken.
    • gPSAltitudeOptD

      OptionalDouble gPSAltitudeOptD
      The altitude above see level where the photo was taken.
    • gpsConfidence

      GpsConfidence gpsConfidence
      The confidence of the GPS-Data of the photo (exact, interpolated, unknown).
    • gPSLatitudeOptD

      OptionalDouble gPSLatitudeOptD
      EXIF latitude of the place where the photo was taken.
    • gPSLongitudeOptD

      OptionalDouble gPSLongitudeOptD
      The longitude of the place where the photo was taken.
    • imageDescriptionOpt

      Optional<String> imageDescriptionOpt
      Description of the photo. Unicode is not supported!
    • indOptI

      OptionalInt indOptI
      The index of the photo in a list of photos.
    • pathOpt

      Optional<Path> pathOpt
      The path of the photo file.
    • rotationOptI

      OptionalInt rotationOptI
      The rotation of the photo in degrees.
  • Konstruktordetails

    • GpsRec

      GpsRec()
      Set all fields to empty or unknown.
    • GpsRec

      GpsRec(Optional<Path> pathOpt, OptionalInt indOptI, OptionalLong dateTimeOptL, OptionalDouble gPSLatitudeOptD, OptionalDouble gPSLongitudeOptD, OptionalDouble gPSAltitudeOptD, OptionalInt rotationOptI, Optional<String> artistOpt, Optional<String> imageDescriptionOpt, GpsConfidence gpsConfidence)
      Constructor. All parameters are Optional.
      Parameter:
      pathOpt - of the photo or EXIF file
      indOptI - index in an array of GpsRecs
      dateTimeOptL - optional timestamp
      gPSLatitudeOptD - optional latitude
      gPSLongitudeOptD - optional longitude
      gPSAltitudeOptD - optional altitude
      rotationOptI - optional rotation of the photo as defined in KML
      artistOpt - optional the creator of the photo
      imageDescriptionOpt - the description of the photo
      gpsConfidence - the confidence of the GPS info (e. g. exact, interpolated).
  • Methodendetails

    • addGps

      void addGps(ShowRec showRec)
      Add GPS info to this GpsRec. ImageDescription, GPSLatitude, GPSLongitude may be abbreviated by I, La, Lo.)
      Parameter:
      showRec - the source of GPS info that is to be added to this.
    • clear

      void clear()
      Clear the content.
    • hasGps

      boolean hasGps()
      This GpsRec either has GPS info or not.
      Gibt zurück:
      if this GpsRec contains GPS info.
    • interpolate

      void interpolate(Optional<GpsRec> beforeWithGpsOpt, Optional<GpsRec> afterWithGpsOpt)
      If this GpsRec lacks GPS info, construct another one by interpolating the neighbours.
      Parameter:
      beforeWithGpsOpt - the neighbour GpsRec with GPS info at some time before
      afterWithGpsOpt - the neighbour GpsRec with GPS info at some time after
    • jpgPathOpt

      Optional<Path> jpgPathOpt()
      The first line of the exif file contains the name of the underlying jpg / jpeg file.
      Gibt zurück:
      e. g. a.b.img123.exif -> a.b.img123.jpg or a.b.img123.jpeg
    • merge

      void merge(GpsRec that)
      Add missing fields of this GpsRec by those of another.
      Parameter:
      that - has the additional data
    • parent

      Path parent()
      The parent directory of the photo.
      Gibt zurück:
      the directory where the photo belongs to