Class: Exif::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/exif.rb,
ext/exif/data.c

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject



165
# File 'ext/exif/data.c', line 165

static VALUE new (VALUE self, VALUE input);

Instance Method Details

#[]Object



167
# File 'ext/exif/data.c', line 167

static VALUE brackets(VALUE self, VALUE ifd_symbol);

#altitudeObject



22
23
24
# File 'lib/exif.rb', line 22

def altitude
	return gps_altitude.to_f
end

#dumpObject



166
# File 'ext/exif/data.c', line 166

static VALUE dump(VALUE self);

#latitudeObject



10
11
12
13
14
# File 'lib/exif.rb', line 10

def latitude
	hemi = self.gps_latitude_ref == "N" ? 1 : -1
	lat_f = (self.gps_latitude[0].to_f+self.gps_latitude[1].to_f/60.0+self.gps_latitude[2].to_f/3600.0)*hemi
	return lat_f
end

#longitudeObject



16
17
18
19
20
# File 'lib/exif.rb', line 16

def longitude
	hemi = self.gps_longitude_ref == "E" ? 1 : -1
	lng_f = (self.gps_longitude[0].to_f+self.gps_longitude[1].to_f/60.0+self.gps_longitude[2].to_f/3600.0)*hemi
	return lng_f
end