gpx2exif 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,28 +1,38 @@
1
- = gpx2xif
1
+ gpx2xif
2
+ =======
2
3
 
3
- Tested only on Garmin eTrex with their GPX files. Works with Flickr and Panoramio.
4
+ Geotag your photos using stored GPX files. At this moment it support only Garmin eTrex devices.
4
5
 
5
- == Disclaimer
6
+
7
+ Disclaimer
8
+ ----------
6
9
 
7
10
  This gem add one executable which overwrite JPG files. BACKUP IS NEEDED!
8
11
 
9
- == How to use it?
12
+ How to use it
13
+ ------
14
+
15
+ 1. gem install gpx2exif
16
+
17
+ 2. Go to path where you have JPG/JPEG photos (case insensitive) and GPX files.
10
18
 
11
- * gem install gpx2exif
19
+ 3. From 0.0.1 there is 'simulation command'. Type 'geotag_simulate' and enter.
12
20
 
13
- * go to path where you have JPG/JPEG photos (case insensitive) and GPX files
21
+ 4. WARNING! it will overwrite all your photos so MAKE A BACKUP!
14
22
 
15
- * WARNING! it will overwrite all your photos so MAKE A BACKUP!
23
+ 5. Type 'geotag_all_images' and press enter key.
16
24
 
17
- * type 'geotag_all_images' and press enter key
25
+ 6. See a nice piece of output and now you have geotagged photos :)
18
26
 
19
- * see nice piece of output and you have geotagged photos now
20
27
 
21
28
  If something is not working send me e-mail and I'll fix it.
22
29
 
23
30
 
24
- == Contributing to simple_metar_parser
25
-
31
+ Contributing to gpx2xif
32
+ -------------------------------
33
+
34
+ [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=bobik314&url=https://github.com/akwiatkowski/gpx2xif&title=gpx2xif&language=en_GB&tags=github&category=software)
35
+
26
36
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
27
37
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
28
38
  * Fork the project
@@ -31,7 +41,9 @@ If something is not working send me e-mail and I'll fix it.
31
41
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
32
42
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
33
43
 
34
- == Copyright
44
+
45
+ Copyright
46
+ ---------
35
47
 
36
48
  Copyright (c) 2012 Aleksander Kwiatkowski. See LICENSE.txt for
37
49
  further details.
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
22
22
  gem.email = "bobikx@poczta.fm"
23
23
  gem.authors = ["Aleksander Kwiatkowski"]
24
24
  # dependencies defined in Gemfile
25
- gem.executables = 'geotag_all_images'
25
+ gem.executables = ['geotag_all_images', 'geotag_simulate']
26
26
 
27
27
  gem.files = FileList[
28
28
  "[A-Z]*", "{bin,generators,lib,test}/**/*"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'gpx2exif'
5
+
6
+ #puts "Are you sure? It is evil script which probably eat photos of your dog and family. Uppercase 'yes' and enter if you want to continue."
7
+ #str = gets
8
+ #exit(0) unless str.strip == 'YES'
9
+
10
+ g = Gpx2exif::GeoManager.new
11
+ g.add_all_files
12
+ g.match_up
13
+ g.simulate
@@ -55,6 +55,10 @@ module Gpx2exif
55
55
  end
56
56
  end
57
57
 
58
+ def simulate
59
+ to_process = @ee.images.select { |i| not i[:coord].nil? }
60
+ puts "Result: to update #{to_process.size} from #{@ee.images.size}"
61
+ end
58
62
 
59
63
  end
60
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpx2exif
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &11700960 !ruby/object:Gem::Requirement
16
+ requirement: &15838400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *11700960
24
+ version_requirements: *15838400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mini_exiftool
27
- requirement: &11700420 !ruby/object:Gem::Requirement
27
+ requirement: &15837920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *11700420
35
+ version_requirements: *15837920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &11699940 !ruby/object:Gem::Requirement
38
+ requirement: &15837420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.3.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *11699940
46
+ version_requirements: *15837420
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &11699440 !ruby/object:Gem::Requirement
49
+ requirement: &15836940 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *11699440
57
+ version_requirements: *15836940
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &11698960 !ruby/object:Gem::Requirement
60
+ requirement: &15836460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.6.4
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *11698960
68
+ version_requirements: *15836460
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
- requirement: &11698480 !ruby/object:Gem::Requirement
71
+ requirement: &15835980 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,23 +76,25 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *11698480
79
+ version_requirements: *15835980
80
80
  description: Mass geotagger using GPX files.
81
81
  email: bobikx@poczta.fm
82
82
  executables:
83
83
  - geotag_all_images
84
+ - geotag_simulate
84
85
  extensions: []
85
86
  extra_rdoc_files:
86
87
  - LICENSE.txt
87
- - README.rdoc
88
+ - README.md
88
89
  files:
89
90
  - Gemfile
90
91
  - Gemfile.lock
91
92
  - LICENSE.txt
92
- - README.rdoc
93
+ - README.md
93
94
  - Rakefile
94
95
  - VERSION
95
96
  - bin/geotag_all_images
97
+ - bin/geotag_simulate
96
98
  - lib/gpx2exif.rb
97
99
  - lib/gpx2exif/exif_editor.rb
98
100
  - lib/gpx2exif/geo_manager.rb
@@ -112,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
114
  version: '0'
113
115
  segments:
114
116
  - 0
115
- hash: 2721654059768013364
117
+ hash: 1534559564307803771
116
118
  required_rubygems_version: !ruby/object:Gem::Requirement
117
119
  none: false
118
120
  requirements: