Class GpsDirectory


public class GpsDirectory extends ExifDirectoryBase
Describes Exif tags that contain Global Positioning System (GPS) data.
  • Field Details

    • TAG_VERSION_ID

      public static final int TAG_VERSION_ID
      GPS tag version GPSVersionID 0 0 BYTE 4
      See Also:
    • TAG_LATITUDE_REF

      public static final int TAG_LATITUDE_REF
      North or South Latitude GPSLatitudeRef 1 1 ASCII 2
      See Also:
    • TAG_LATITUDE

      public static final int TAG_LATITUDE
      Latitude GPSLatitude 2 2 RATIONAL 3
      See Also:
    • TAG_LONGITUDE_REF

      public static final int TAG_LONGITUDE_REF
      East or West Longitude GPSLongitudeRef 3 3 ASCII 2
      See Also:
    • TAG_LONGITUDE

      public static final int TAG_LONGITUDE
      Longitude GPSLongitude 4 4 RATIONAL 3
      See Also:
    • TAG_ALTITUDE_REF

      public static final int TAG_ALTITUDE_REF
      Altitude reference GPSAltitudeRef 5 5 BYTE 1
      See Also:
    • TAG_ALTITUDE

      public static final int TAG_ALTITUDE
      Altitude GPSAltitude 6 6 RATIONAL 1
      See Also:
    • TAG_TIME_STAMP

      public static final int TAG_TIME_STAMP
      GPS time (atomic clock) GPSTimeStamp 7 7 RATIONAL 3
      See Also:
    • TAG_SATELLITES

      public static final int TAG_SATELLITES
      GPS satellites used for measurement GPSSatellites 8 8 ASCII Any
      See Also:
    • TAG_STATUS

      public static final int TAG_STATUS
      GPS receiver status GPSStatus 9 9 ASCII 2
      See Also:
    • TAG_MEASURE_MODE

      public static final int TAG_MEASURE_MODE
      GPS measurement mode GPSMeasureMode 10 A ASCII 2
      See Also:
    • TAG_DOP

      public static final int TAG_DOP
      Measurement precision GPSDOP 11 B RATIONAL 1
      See Also:
    • TAG_SPEED_REF

      public static final int TAG_SPEED_REF
      Speed unit GPSSpeedRef 12 C ASCII 2
      See Also:
    • TAG_SPEED

      public static final int TAG_SPEED
      Speed of GPS receiver GPSSpeed 13 D RATIONAL 1
      See Also:
    • TAG_TRACK_REF

      public static final int TAG_TRACK_REF
      Reference for direction of movement GPSTrackRef 14 E ASCII 2
      See Also:
    • TAG_TRACK

      public static final int TAG_TRACK
      Direction of movement GPSTrack 15 F RATIONAL 1
      See Also:
    • TAG_IMG_DIRECTION_REF

      public static final int TAG_IMG_DIRECTION_REF
      Reference for direction of image GPSImgDirectionRef 16 10 ASCII 2
      See Also:
    • TAG_IMG_DIRECTION

      public static final int TAG_IMG_DIRECTION
      Direction of image GPSImgDirection 17 11 RATIONAL 1
      See Also:
    • TAG_MAP_DATUM

      public static final int TAG_MAP_DATUM
      Geodetic survey data used GPSMapDatum 18 12 ASCII Any
      See Also:
    • TAG_DEST_LATITUDE_REF

      public static final int TAG_DEST_LATITUDE_REF
      Reference for latitude of destination GPSDestLatitudeRef 19 13 ASCII 2
      See Also:
    • TAG_DEST_LATITUDE

      public static final int TAG_DEST_LATITUDE
      Latitude of destination GPSDestLatitude 20 14 RATIONAL 3
      See Also:
    • TAG_DEST_LONGITUDE_REF

      public static final int TAG_DEST_LONGITUDE_REF
      Reference for longitude of destination GPSDestLongitudeRef 21 15 ASCII 2
      See Also:
    • TAG_DEST_LONGITUDE

      public static final int TAG_DEST_LONGITUDE
      Longitude of destination GPSDestLongitude 22 16 RATIONAL 3
      See Also:
    • TAG_DEST_BEARING_REF

      public static final int TAG_DEST_BEARING_REF
      Reference for bearing of destination GPSDestBearingRef 23 17 ASCII 2
      See Also:
    • TAG_DEST_BEARING

      public static final int TAG_DEST_BEARING
      Bearing of destination GPSDestBearing 24 18 RATIONAL 1
      See Also:
    • TAG_DEST_DISTANCE_REF

      public static final int TAG_DEST_DISTANCE_REF
      Reference for distance to destination GPSDestDistanceRef 25 19 ASCII 2
      See Also:
    • TAG_DEST_DISTANCE

      public static final int TAG_DEST_DISTANCE
      Distance to destination GPSDestDistance 26 1A RATIONAL 1
      See Also:
    • TAG_PROCESSING_METHOD

      public static final int TAG_PROCESSING_METHOD
      Name of the method used for location finding GPSProcessingMethod 27 1B UNDEFINED Any
      See Also:
    • TAG_AREA_INFORMATION

      public static final int TAG_AREA_INFORMATION
      Name of the GPS area GPSAreaInformation 28 1C UNDEFINED Any
      See Also:
    • TAG_DATE_STAMP

      public static final int TAG_DATE_STAMP
      Date and time GPSDateStamp 29 1D ASCII 11
      See Also:
    • TAG_DIFFERENTIAL

      public static final int TAG_DIFFERENTIAL
      Whether differential correction is applied GPSDifferential 30 1E SHORT 1
      See Also:
    • TAG_H_POSITIONING_ERROR

      public static final int TAG_H_POSITIONING_ERROR
      Horizontal positioning errors GPSHPositioningError 31 1F RATIONAL 1
      See Also:
  • Constructor Details

    • GpsDirectory

      public GpsDirectory()
  • Method Details

    • getName

      public String getName()
      Description copied from class: Directory
      Provides the name of the directory, for display purposes. E.g. Exif
      Specified by:
      getName in class Directory
      Returns:
      the name of the directory
    • getGeoLocation

      public GeoLocation getGeoLocation()
      Parses various tags in an attempt to obtain a single object representing the latitude and longitude at which this image was captured.
      Returns:
      The geographical location of this image, if possible, otherwise null
    • getGpsDate

      public Date getGpsDate()
      Parses the date stamp tag and the time stamp tag to obtain a single Date object representing the date and time when this image was captured.
      Returns:
      A Date object representing when this image was captured, if possible, otherwise null