Class: ExifTagger::Tag::GpsCreated

Inherits:
TagHashOfStrings show all
Defined in:
lib/phtools/exif_tagger/tags/gps_created.rb

Overview

GPS tags are used for camera location according to MWG 2.0) GPSLatitude (rational64u) GPSLatitudeRef (string ‘N’ = North, ‘S’ = South) GPSLongitude (rational64u) GPSLongitudeRef (string ‘E’ = East, ‘W’ = West) GPSAltitude (rational64u) GPSAltitudeRef (int8u 0 = Above Sea Level, 1 = Below Sea Level)

Constant Summary collapse

MAX_BYTESIZE =
64
VALID_KEYS =
[:gps_latitude, :gps_latitude_ref, :gps_longitude, :gps_longitude_ref, :gps_altitude, :gps_altitude_ref].freeze
VALID_VALUES =
{ gps_latitude_ref: %w(N S North South), gps_longitude_ref: %w(E W East West), gps_altitude_ref: ['Above Sea Level', 'Below Sea Level', '0', '1'] }.freeze
EXIFTOOL_TAGS =
%w(
  GPSPosition
  GPSLatitude
  GPSLatitudeRef
  GPSLongitude
  GPSLongitudeRef
  GPSAltitude
  GPSAltitudeRef
).freeze

Constants inherited from Tag

Tag::EMPTY, Tag::EMPTY_DATE

Instance Attribute Summary

Attributes inherited from Tag

#errors, #force_write, #info, #previous, #raw_values, #value, #value_invalid, #warnings, #write_script_lines

Method Summary

Methods inherited from Tag

#<=>, #check_for_warnings, empty?, #initialize, #tag_id, #tag_name, #to_s, #to_write_script, #valid?

Constructor Details

This class inherits a constructor from ExifTagger::Tag::Tag