Changeset 12215 for platform/tdiary/plugin
- Timestamp:
- 05/22/08 21:24:34 (6 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/plugin/image_gps.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/image_gps.rb
r6098 r12215 12 12 13 13 =begin ChangeLog 14 2008-05-22 kp 15 * MapDatumがTOKYO以外の場合、WGS-84と類推する 14 16 2008-01-17 kp 15 17 * いろいろ変更 … … 69 71 end 70 72 begin 71 if(exif['GPSLatitudeRef'].value == 'N' && exif['GPSLongitudeRef'].value == 'E' && exif['GPSMapDatum'].value =~ /(WGS-?84|TOKYO)/)73 if(exif['GPSLatitudeRef'].value == 'N' && exif['GPSLongitudeRef'].value == 'E') 72 74 nl = exif['GPSLatitude'].value if exif.tag?('GPSLatitude') 73 75 el = exif['GPSLongitude'].value if exif.tag?('GPSLongitude') … … 83 85 lon = "#{sprintf("%d.%d.%.2f",*el)}" 84 86 else 85 Wgs2Tky.conv!(nl,el) if datum =~ /WGS-?84/87 Wgs2Tky.conv!(nl,el) unless datum == /TOKYO/ 86 88 lat ="#{sprintf("%d/%d/%.3f",*nl)}" 87 89 lon ="#{sprintf("%d/%d/%.3f",*el)}"
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)