com.drew.metadata.exif
Class GpsDirectory

java.lang.Object
  extended by com.drew.metadata.Directory
      extended by com.drew.metadata.exif.GpsDirectory
All Implemented Interfaces:
Serializable

public class GpsDirectory
extends Directory

Describes Exif tags that contain Global Positioning System (GPS) data.

See Also:
Serialized Form

Field Summary
static int TAG_GPS_ALTITUDE
          Altitude GPSAltitude 6 6 RATIONAL 1
static int TAG_GPS_ALTITUDE_REF
          Altitude reference GPSAltitudeRef 5 5 BYTE 1
static int TAG_GPS_DEST_BEARING
          Bearing of destination GPSDestBearing 24 18 RATIONAL 1
static int TAG_GPS_DEST_BEARING_REF
          Reference for bearing of destination GPSDestBearingRef 23 17 ASCII 2
static int TAG_GPS_DEST_DISTANCE
          Distance to destination GPSDestDistance 26 1A RATIONAL 1
static int TAG_GPS_DEST_DISTANCE_REF
          Reference for distance to destination GPSDestDistanceRef 25 19 ASCII 2
static int TAG_GPS_DEST_LATITUDE
          Latitude of destination GPSDestLatitude 20 14 RATIONAL 3
static int TAG_GPS_DEST_LATITUDE_REF
          Reference for latitude of destination GPSDestLatitudeRef 19 13 ASCII 2
static int TAG_GPS_DEST_LONGITUDE
          Longitude of destination GPSDestLongitude 22 16 RATIONAL 3
static int TAG_GPS_DEST_LONGITUDE_REF
          Reference for longitude of destination GPSDestLongitudeRef 21 15 ASCII 2
static int TAG_GPS_DOP
          Measurement precision GPSDOP 11 B RATIONAL 1
static int TAG_GPS_IMG_DIRECTION
          Direction of image GPSImgDirection 17 11 RATIONAL 1
static int TAG_GPS_IMG_DIRECTION_REF
          Reference for direction of image GPSImgDirectionRef 16 10 ASCII 2
static int TAG_GPS_LATITUDE
          Latitude GPSLatitude 2 2 RATIONAL 3
static int TAG_GPS_LATITUDE_REF
          North or South Latitude GPSLatitudeRef 1 1 ASCII 2
static int TAG_GPS_LONGITUDE
          Longitude GPSLongitude 4 4 RATIONAL 3
static int TAG_GPS_LONGITUDE_REF
          East or West Longitude GPSLongitudeRef 3 3 ASCII 2
static int TAG_GPS_MAP_DATUM
          Geodetic survey data used GPSMapDatum 18 12 ASCII Any
static int TAG_GPS_MEASURE_MODE
          GPS measurement mode GPSMeasureMode 10 A ASCII 2
static int TAG_GPS_SATELLITES
          GPS satellites used for measurement GPSSatellites 8 8 ASCII Any
static int TAG_GPS_SPEED
          Speed of GPS receiver GPSSpeed 13 D RATIONAL 1
static int TAG_GPS_SPEED_REF
          Speed unit GPSSpeedRef 12 C ASCII 2
static int TAG_GPS_STATUS
          GPS receiver status GPSStatus 9 9 ASCII 2
static int TAG_GPS_TIME_STAMP
          GPS time (atomic clock) GPSTimeStamp 7 7 RATIONAL 3
static int TAG_GPS_TRACK
          Direction of movement GPSTrack 15 F RATIONAL 1
static int TAG_GPS_TRACK_REF
          Reference for direction of movement GPSTrackRef 14 E ASCII 2
static int TAG_GPS_VERSION_ID
          GPS tag version GPSVersionID 0 0 BYTE 4
protected static HashMap tagNameMap
           
 
Fields inherited from class com.drew.metadata.Directory
_definedTagList, _descriptor, _tagMap
 
Constructor Summary
GpsDirectory()
           
 
Method Summary
 String getName()
          Provides the name of the directory, for display purposes.
protected  HashMap getTagNameMap()
          Provides the map of tag names, hashed by tag type identifier.
 
Methods inherited from class com.drew.metadata.Directory
addError, containsTag, getBoolean, getByteArray, getDate, getDescription, getDouble, getErrorCount, getErrors, getFloat, getInt, getIntArray, getLong, getObject, getRational, getRationalArray, getString, getStringArray, getTagCount, getTagIterator, getTagName, hasErrors, setBoolean, setByteArray, setDate, setDescriptor, setDouble, setFloat, setInt, setIntArray, setLong, setObject, setObjectArray, setRational, setRationalArray, setString, setStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_GPS_VERSION_ID

public static final int TAG_GPS_VERSION_ID
GPS tag version GPSVersionID 0 0 BYTE 4

See Also:
Constant Field Values

TAG_GPS_LATITUDE_REF

public static final int TAG_GPS_LATITUDE_REF
North or South Latitude GPSLatitudeRef 1 1 ASCII 2

See Also:
Constant Field Values

TAG_GPS_LATITUDE

public static final int TAG_GPS_LATITUDE
Latitude GPSLatitude 2 2 RATIONAL 3

See Also:
Constant Field Values

TAG_GPS_LONGITUDE_REF

public static final int TAG_GPS_LONGITUDE_REF
East or West Longitude GPSLongitudeRef 3 3 ASCII 2

See Also:
Constant Field Values

TAG_GPS_LONGITUDE

public static final int TAG_GPS_LONGITUDE
Longitude GPSLongitude 4 4 RATIONAL 3

See Also:
Constant Field Values

TAG_GPS_ALTITUDE_REF

public static final int TAG_GPS_ALTITUDE_REF
Altitude reference GPSAltitudeRef 5 5 BYTE 1

See Also:
Constant Field Values

TAG_GPS_ALTITUDE

public static final int TAG_GPS_ALTITUDE
Altitude GPSAltitude 6 6 RATIONAL 1

See Also:
Constant Field Values

TAG_GPS_TIME_STAMP

public static final int TAG_GPS_TIME_STAMP
GPS time (atomic clock) GPSTimeStamp 7 7 RATIONAL 3

See Also:
Constant Field Values

TAG_GPS_SATELLITES

public static final int TAG_GPS_SATELLITES
GPS satellites used for measurement GPSSatellites 8 8 ASCII Any

See Also:
Constant Field Values

TAG_GPS_STATUS

public static final int TAG_GPS_STATUS
GPS receiver status GPSStatus 9 9 ASCII 2

See Also:
Constant Field Values

TAG_GPS_MEASURE_MODE

public static final int TAG_GPS_MEASURE_MODE
GPS measurement mode GPSMeasureMode 10 A ASCII 2

See Also:
Constant Field Values

TAG_GPS_DOP

public static final int TAG_GPS_DOP
Measurement precision GPSDOP 11 B RATIONAL 1

See Also:
Constant Field Values

TAG_GPS_SPEED_REF

public static final int TAG_GPS_SPEED_REF
Speed unit GPSSpeedRef 12 C ASCII 2

See Also:
Constant Field Values

TAG_GPS_SPEED

public static final int TAG_GPS_SPEED
Speed of GPS receiver GPSSpeed 13 D RATIONAL 1

See Also:
Constant Field Values

TAG_GPS_TRACK_REF

public static final int TAG_GPS_TRACK_REF
Reference for direction of movement GPSTrackRef 14 E ASCII 2

See Also:
Constant Field Values

TAG_GPS_TRACK

public static final int TAG_GPS_TRACK
Direction of movement GPSTrack 15 F RATIONAL 1

See Also:
Constant Field Values

TAG_GPS_IMG_DIRECTION_REF

public static final int TAG_GPS_IMG_DIRECTION_REF
Reference for direction of image GPSImgDirectionRef 16 10 ASCII 2

See Also:
Constant Field Values

TAG_GPS_IMG_DIRECTION

public static final int TAG_GPS_IMG_DIRECTION
Direction of image GPSImgDirection 17 11 RATIONAL 1

See Also:
Constant Field Values

TAG_GPS_MAP_DATUM

public static final int TAG_GPS_MAP_DATUM
Geodetic survey data used GPSMapDatum 18 12 ASCII Any

See Also:
Constant Field Values

TAG_GPS_DEST_LATITUDE_REF

public static final int TAG_GPS_DEST_LATITUDE_REF
Reference for latitude of destination GPSDestLatitudeRef 19 13 ASCII 2

See Also:
Constant Field Values

TAG_GPS_DEST_LATITUDE

public static final int TAG_GPS_DEST_LATITUDE
Latitude of destination GPSDestLatitude 20 14 RATIONAL 3

See Also:
Constant Field Values

TAG_GPS_DEST_LONGITUDE_REF

public static final int TAG_GPS_DEST_LONGITUDE_REF
Reference for longitude of destination GPSDestLongitudeRef 21 15 ASCII 2

See Also:
Constant Field Values

TAG_GPS_DEST_LONGITUDE

public static final int TAG_GPS_DEST_LONGITUDE
Longitude of destination GPSDestLongitude 22 16 RATIONAL 3

See Also:
Constant Field Values

TAG_GPS_DEST_BEARING_REF

public static final int TAG_GPS_DEST_BEARING_REF
Reference for bearing of destination GPSDestBearingRef 23 17 ASCII 2

See Also:
Constant Field Values

TAG_GPS_DEST_BEARING

public static final int TAG_GPS_DEST_BEARING
Bearing of destination GPSDestBearing 24 18 RATIONAL 1

See Also:
Constant Field Values

TAG_GPS_DEST_DISTANCE_REF

public static final int TAG_GPS_DEST_DISTANCE_REF
Reference for distance to destination GPSDestDistanceRef 25 19 ASCII 2

See Also:
Constant Field Values

TAG_GPS_DEST_DISTANCE

public static final int TAG_GPS_DEST_DISTANCE
Distance to destination GPSDestDistance 26 1A RATIONAL 1

See Also:
Constant Field Values

tagNameMap

protected static final HashMap tagNameMap
Constructor Detail

GpsDirectory

public GpsDirectory()
Method Detail

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

getTagNameMap

protected HashMap getTagNameMap()
Description copied from class: Directory
Provides the map of tag names, hashed by tag type identifier.

Specified by:
getTagNameMap in class Directory
Returns:
the map of tag names