Class GpsDirectory


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

      • TAG_VERSION_ID

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public static final int TAG_PROCESSING_METHOD
        Values of "GPS", "CELLID", "WLAN" or "MANUAL" by the EXIF spec.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GpsDirectory

        public GpsDirectory()
    • Method Detail

      • getName

        public java.lang.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 java.util.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