Class: Exif::Data
- Inherits:
-
Object
- Object
- Exif::Data
- Defined in:
- lib/exif.rb,
ext/exif/data.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new ⇒ Object
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);
|
#altitude ⇒ Object
22 23 24 |
# File 'lib/exif.rb', line 22 def altitude return gps_altitude.to_f end |
#dump ⇒ Object
166 |
# File 'ext/exif/data.c', line 166 static VALUE dump(VALUE self); |
#latitude ⇒ Object
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 |
#longitude ⇒ Object
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 |