tf1_converter 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -0
- data/Gemfile.lock +3 -1
- data/example/config.csv +2 -2
- data/harness.rb +4 -1
- data/lib/tf1_converter/kml_file.rb +1 -1
- data/lib/tf1_converter/kmz_file.rb +22 -0
- data/lib/tf1_converter/translation.rb +5 -1
- data/lib/tf1_converter/version.rb +1 -1
- data/output/test.kml +34 -34
- data/spec/fixtures/expected.kml +15 -15
- data/tf1_converter.gemspec +1 -0
- metadata +21 -4
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tf1_converter (0.
|
4
|
+
tf1_converter (0.8.0)
|
5
5
|
builder (= 3.1.4)
|
6
6
|
geo_swap (= 0.2.1)
|
7
7
|
nokogiri (= 1.5.6)
|
8
|
+
rubyzip (= 0.9.9)
|
8
9
|
thor (= 0.17.0)
|
9
10
|
|
10
11
|
GEM
|
@@ -29,6 +30,7 @@ GEM
|
|
29
30
|
rspec-expectations (2.12.1)
|
30
31
|
diff-lcs (~> 1.1.3)
|
31
32
|
rspec-mocks (2.12.1)
|
33
|
+
rubyzip (0.9.9)
|
32
34
|
slop (3.4.3)
|
33
35
|
thor (0.17.0)
|
34
36
|
timecop (0.5.9.2)
|
data/example/config.csv
CHANGED
@@ -8,7 +8,7 @@ output
|
|
8
8
|
|
9
9
|
The full path of the directory where your icons are stored
|
10
10
|
ICON_PATH
|
11
|
-
|
11
|
+
/Users/ethanvizitei/icons
|
12
12
|
|
13
13
|
START_PATH
|
14
14
|
c:\program files\gpx2kml\test
|
@@ -52,4 +52,4 @@ Red,f01400ff
|
|
52
52
|
Orange,f014b4ff
|
53
53
|
Green,f000b414
|
54
54
|
Purple,f0ff7878
|
55
|
-
Pink,f0ff78f0
|
55
|
+
Pink,f0ff78f0
|
data/harness.rb
CHANGED
@@ -7,7 +7,10 @@
|
|
7
7
|
|
8
8
|
require_relative './lib/tf1_converter'
|
9
9
|
|
10
|
+
require 'fileutils'
|
11
|
+
FileUtils.rm('output/test.zip') if File.exists?('output/test.zip')
|
12
|
+
|
10
13
|
input = File.open('input/test.gpx', 'r')
|
11
14
|
output = File.open('output/test.kml', 'w')
|
12
|
-
TF1Converter::Config.load('example/
|
15
|
+
TF1Converter::Config.load('example/localconfig.csv')
|
13
16
|
TF1Converter::Translation.from(input).into(output)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'zip/zip'
|
3
|
+
|
4
|
+
module TF1Converter
|
5
|
+
class KmzFile
|
6
|
+
def self.assemble!(filename)
|
7
|
+
raw_name = filename.split(/[\/\\]/).last
|
8
|
+
zip_path = "#{filename}.zip"
|
9
|
+
FileUtils.rm(zip_path) if File.exists?(zip_path)
|
10
|
+
Zip::ZipFile.open(zip_path, Zip::ZipFile::CREATE) do |zipfile|
|
11
|
+
zipfile.add("#{raw_name}.kml", "#{filename}.kml")
|
12
|
+
zipfile.mkdir("files")
|
13
|
+
Dir.foreach(TF1Converter::Config.icon_path) do |item|
|
14
|
+
if item != '.' && item != '..'
|
15
|
+
zipfile.add("files/#{item}", "#{TF1Converter::Config.icon_path}/#{item}")
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
FileUtils.mv(zip_path, "#{filename}.kmz")
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -2,6 +2,7 @@ require 'nokogiri'
|
|
2
2
|
require 'geo_swap'
|
3
3
|
require_relative 'gpx_file'
|
4
4
|
require_relative 'kml_file'
|
5
|
+
require_relative 'kmz_file'
|
5
6
|
require_relative 'csv_file'
|
6
7
|
|
7
8
|
module TF1Converter
|
@@ -17,12 +18,15 @@ module TF1Converter
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def into(output_file)
|
20
|
-
|
21
|
+
raw_file_name = output_file.path.split('.').first
|
22
|
+
csv_path = raw_file_name + '.csv'
|
21
23
|
CsvFile.new(@gpx.waypoints, csv_path).to_csv!
|
22
24
|
|
23
25
|
kml = KmlFile.new(@gpx.waypoints, @gpx.tracks).to_xml
|
24
26
|
output_file.puts kml
|
25
27
|
output_file.close
|
28
|
+
|
29
|
+
kmz = KmzFile.assemble!(raw_file_name)
|
26
30
|
end
|
27
31
|
|
28
32
|
end
|
data/output/test.kml
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<Document>
|
4
4
|
<open>1</open>
|
5
5
|
<Snippet maxLines="1"/>
|
6
|
-
<description><![CDATA[02-
|
6
|
+
<description><![CDATA[02-23-2013 12:42:42 PM<br/><br/>TF1 Converter Version 1.0<br/>MO Task Force 1<br/>]]></description>
|
7
7
|
<Style id="sn_noicon">
|
8
8
|
<IconStyle>
|
9
9
|
<Icon/>
|
@@ -17,11 +17,11 @@
|
|
17
17
|
<Style id="normalPlacemark">
|
18
18
|
<IconStyle>
|
19
19
|
<Icon>
|
20
|
-
<href>
|
20
|
+
<href>files/01.png</href>
|
21
21
|
</Icon>
|
22
22
|
</IconStyle>
|
23
23
|
</Style>
|
24
|
-
<description><![CDATA[18-OCT-09 2:17:38PM<br>Search Start<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60922 8133<br>UTM: 15S 560922mE 4308133mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
24
|
+
<description><![CDATA[18-OCT-09 2:17:38PM<br>Search Start<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60922 8133<br>UTM: 15S 560922mE 4308133mN<br>Lat/Long: 38.9199972/-92.2972443<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
25
25
|
<Point>
|
26
26
|
<coordinates>-92.2972443,38.9199972</coordinates>
|
27
27
|
</Point>
|
@@ -32,11 +32,11 @@
|
|
32
32
|
<Style id="normalPlacemark">
|
33
33
|
<IconStyle>
|
34
34
|
<Icon>
|
35
|
-
<href>
|
35
|
+
<href>files/03.png</href>
|
36
36
|
</Icon>
|
37
37
|
</IconStyle>
|
38
38
|
</Style>
|
39
|
-
<description><![CDATA[18-OCT-09 2:18:07PM<br>Victim Detected<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60946 8109<br>UTM: 15S 560946mE 4308109mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
39
|
+
<description><![CDATA[18-OCT-09 2:18:07PM<br>Victim Detected<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60946 8109<br>UTM: 15S 560946mE 4308109mN<br>Lat/Long: 38.9197762/-92.2969611<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
40
40
|
<Point>
|
41
41
|
<coordinates>-92.2969611,38.9197762</coordinates>
|
42
42
|
</Point>
|
@@ -47,11 +47,11 @@
|
|
47
47
|
<Style id="normalPlacemark">
|
48
48
|
<IconStyle>
|
49
49
|
<Icon>
|
50
|
-
<href>
|
50
|
+
<href>files/04.png</href>
|
51
51
|
</Icon>
|
52
52
|
</IconStyle>
|
53
53
|
</Style>
|
54
|
-
<description><![CDATA[18-OCT-09 2:18:36PM<br>Victim Confirmed<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60928 8079<br>UTM: 15S 560928mE 4308079mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
54
|
+
<description><![CDATA[18-OCT-09 2:18:36PM<br>Victim Confirmed<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60928 8079<br>UTM: 15S 560928mE 4308079mN<br>Lat/Long: 38.9195040/-92.2971813<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
55
55
|
<Point>
|
56
56
|
<coordinates>-92.2971813,38.9195040</coordinates>
|
57
57
|
</Point>
|
@@ -62,11 +62,11 @@
|
|
62
62
|
<Style id="normalPlacemark">
|
63
63
|
<IconStyle>
|
64
64
|
<Icon>
|
65
|
-
<href>
|
65
|
+
<href>files/11.png</href>
|
66
66
|
</Icon>
|
67
67
|
</IconStyle>
|
68
68
|
</Style>
|
69
|
-
<description><![CDATA[18-OCT-09 2:19:49PM<br>Collection Point<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60883 8039<br>UTM: 15S 560883mE 4308039mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
69
|
+
<description><![CDATA[18-OCT-09 2:19:49PM<br>Collection Point<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60883 8039<br>UTM: 15S 560883mE 4308039mN<br>Lat/Long: 38.9191455/-92.2977024<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
70
70
|
<Point>
|
71
71
|
<coordinates>-92.2977024,38.9191455</coordinates>
|
72
72
|
</Point>
|
@@ -77,11 +77,11 @@
|
|
77
77
|
<Style id="normalPlacemark">
|
78
78
|
<IconStyle>
|
79
79
|
<Icon>
|
80
|
-
<href>
|
80
|
+
<href>files/18.png</href>
|
81
81
|
</Icon>
|
82
82
|
</IconStyle>
|
83
83
|
</Style>
|
84
|
-
<description><![CDATA[18-OCT-09 2:20:33PM<br>Structure Damage / Safe<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60912 8043<br>UTM: 15S 560912mE 4308043mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
84
|
+
<description><![CDATA[18-OCT-09 2:20:33PM<br>Structure Damage / Safe<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60912 8043<br>UTM: 15S 560912mE 4308043mN<br>Lat/Long: 38.9191831/-92.2973642<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
85
85
|
<Point>
|
86
86
|
<coordinates>-92.2973642,38.9191831</coordinates>
|
87
87
|
</Point>
|
@@ -92,11 +92,11 @@
|
|
92
92
|
<Style id="normalPlacemark">
|
93
93
|
<IconStyle>
|
94
94
|
<Icon>
|
95
|
-
<href>
|
95
|
+
<href>files/15.png</href>
|
96
96
|
</Icon>
|
97
97
|
</IconStyle>
|
98
98
|
</Style>
|
99
|
-
<description><![CDATA[18-OCT-09 2:21:40PM<br>Criminal Activity<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60966 8093<br>UTM: 15S 560966mE 4308093mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
99
|
+
<description><![CDATA[18-OCT-09 2:21:40PM<br>Criminal Activity<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60966 8093<br>UTM: 15S 560966mE 4308093mN<br>Lat/Long: 38.9196337/-92.2967348<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
100
100
|
<Point>
|
101
101
|
<coordinates>-92.2967348,38.9196337</coordinates>
|
102
102
|
</Point>
|
@@ -107,11 +107,11 @@
|
|
107
107
|
<Style id="normalPlacemark">
|
108
108
|
<IconStyle>
|
109
109
|
<Icon>
|
110
|
-
<href>
|
110
|
+
<href>files/13.png</href>
|
111
111
|
</Icon>
|
112
112
|
</IconStyle>
|
113
113
|
</Style>
|
114
|
-
<description><![CDATA[18-OCT-09 2:22:29PM<br>Command Post<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 61002 8066<br>UTM: 15S 561002mE 4308066mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
114
|
+
<description><![CDATA[18-OCT-09 2:22:29PM<br>Command Post<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 61002 8066<br>UTM: 15S 561002mE 4308066mN<br>Lat/Long: 38.9193832/-92.2963225<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
115
115
|
<Point>
|
116
116
|
<coordinates>-92.2963225,38.9193832</coordinates>
|
117
117
|
</Point>
|
@@ -122,11 +122,11 @@
|
|
122
122
|
<Style id="normalPlacemark">
|
123
123
|
<IconStyle>
|
124
124
|
<Icon>
|
125
|
-
<href>
|
125
|
+
<href>files/14.png</href>
|
126
126
|
</Icon>
|
127
127
|
</IconStyle>
|
128
128
|
</Style>
|
129
|
-
<description><![CDATA[18-OCT-09 2:23:14PM<br>Staging Area<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 61033 8055<br>UTM: 15S 561033mE 4308055mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
129
|
+
<description><![CDATA[18-OCT-09 2:23:14PM<br>Staging Area<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 61033 8055<br>UTM: 15S 561033mE 4308055mN<br>Lat/Long: 38.9192829/-92.2959630<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
130
130
|
<Point>
|
131
131
|
<coordinates>-92.2959630,38.9192829</coordinates>
|
132
132
|
</Point>
|
@@ -137,11 +137,11 @@
|
|
137
137
|
<Style id="normalPlacemark">
|
138
138
|
<IconStyle>
|
139
139
|
<Icon>
|
140
|
-
<href>
|
140
|
+
<href>files/19.png</href>
|
141
141
|
</Icon>
|
142
142
|
</IconStyle>
|
143
143
|
</Style>
|
144
|
-
<description><![CDATA[18-OCT-09 2:24:06PM<br>Meaning 19<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60985 8098<br>UTM: 15S 560985mE 4308098mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
144
|
+
<description><![CDATA[18-OCT-09 2:24:06PM<br>Meaning 19<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60985 8098<br>UTM: 15S 560985mE 4308098mN<br>Lat/Long: 38.9196773/-92.2965171<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
145
145
|
<Point>
|
146
146
|
<coordinates>-92.2965171,38.9196773</coordinates>
|
147
147
|
</Point>
|
@@ -152,11 +152,11 @@
|
|
152
152
|
<Style id="normalPlacemark">
|
153
153
|
<IconStyle>
|
154
154
|
<Icon>
|
155
|
-
<href>
|
155
|
+
<href>files/16.png</href>
|
156
156
|
</Icon>
|
157
157
|
</IconStyle>
|
158
158
|
</Style>
|
159
|
-
<description><![CDATA[18-OCT-09 2:25:24PM<br>Meaning 16<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60909 8156<br>UTM: 15S 560909mE 4308156mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
159
|
+
<description><![CDATA[18-OCT-09 2:25:24PM<br>Meaning 16<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60909 8156<br>UTM: 15S 560909mE 4308156mN<br>Lat/Long: 38.9202020/-92.2973907<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
160
160
|
<Point>
|
161
161
|
<coordinates>-92.2973907,38.9202020</coordinates>
|
162
162
|
</Point>
|
@@ -167,11 +167,11 @@
|
|
167
167
|
<Style id="normalPlacemark">
|
168
168
|
<IconStyle>
|
169
169
|
<Icon>
|
170
|
-
<href>
|
170
|
+
<href>files/21.png</href>
|
171
171
|
</Icon>
|
172
172
|
</IconStyle>
|
173
173
|
</Style>
|
174
|
-
<description><![CDATA[18-OCT-09 2:26:20PM<br>Extra 21<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60918 8213<br>UTM: 15S 560918mE 4308213mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
174
|
+
<description><![CDATA[18-OCT-09 2:26:20PM<br>Extra 21<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60918 8213<br>UTM: 15S 560918mE 4308213mN<br>Lat/Long: 38.9207150/-92.2972759<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
175
175
|
<Point>
|
176
176
|
<coordinates>-92.2972759,38.9207150</coordinates>
|
177
177
|
</Point>
|
@@ -182,11 +182,11 @@
|
|
182
182
|
<Style id="normalPlacemark">
|
183
183
|
<IconStyle>
|
184
184
|
<Icon>
|
185
|
-
<href>
|
185
|
+
<href>files/22.png</href>
|
186
186
|
</Icon>
|
187
187
|
</IconStyle>
|
188
188
|
</Style>
|
189
|
-
<description><![CDATA[18-OCT-09 2:26:40PM<br>Extra 22<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60902 8223<br>UTM: 15S 560902mE 4308223mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
189
|
+
<description><![CDATA[18-OCT-09 2:26:40PM<br>Extra 22<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60902 8223<br>UTM: 15S 560902mE 4308223mN<br>Lat/Long: 38.9208083/-92.2974574<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
190
190
|
<Point>
|
191
191
|
<coordinates>-92.2974574,38.9208083</coordinates>
|
192
192
|
</Point>
|
@@ -197,11 +197,11 @@
|
|
197
197
|
<Style id="normalPlacemark">
|
198
198
|
<IconStyle>
|
199
199
|
<Icon>
|
200
|
-
<href>
|
200
|
+
<href>files/23.png</href>
|
201
201
|
</Icon>
|
202
202
|
</IconStyle>
|
203
203
|
</Style>
|
204
|
-
<description><![CDATA[18-OCT-09 2:27:10PM<br>Extra 23<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60880 8191<br>UTM: 15S 560880mE 4308191mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
204
|
+
<description><![CDATA[18-OCT-09 2:27:10PM<br>Extra 23<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60880 8191<br>UTM: 15S 560880mE 4308191mN<br>Lat/Long: 38.9205154/-92.2977240<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
205
205
|
<Point>
|
206
206
|
<coordinates>-92.2977240,38.9205154</coordinates>
|
207
207
|
</Point>
|
@@ -212,11 +212,11 @@
|
|
212
212
|
<Style id="normalPlacemark">
|
213
213
|
<IconStyle>
|
214
214
|
<Icon>
|
215
|
-
<href>
|
215
|
+
<href>files/02.png</href>
|
216
216
|
</Icon>
|
217
217
|
</IconStyle>
|
218
218
|
</Style>
|
219
|
-
<description><![CDATA[18-OCT-09 2:29:16PM<br>Search Stop<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60822 8145<br>UTM: 15S 560822mE 4308145mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
219
|
+
<description><![CDATA[18-OCT-09 2:29:16PM<br>Search Stop<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60822 8145<br>UTM: 15S 560822mE 4308145mN<br>Lat/Long: 38.9201116/-92.2983951<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
220
220
|
<Point>
|
221
221
|
<coordinates>-92.2983951,38.9201116</coordinates>
|
222
222
|
</Point>
|
@@ -227,11 +227,11 @@
|
|
227
227
|
<Style id="normalPlacemark">
|
228
228
|
<IconStyle>
|
229
229
|
<Icon>
|
230
|
-
<href>
|
230
|
+
<href>files/default.png</href>
|
231
231
|
</Icon>
|
232
232
|
</IconStyle>
|
233
233
|
</Style>
|
234
|
-
<description><![CDATA[Weber Home<br>Default<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60826 8138<br>UTM: 15S 560826mE 4308138mN<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
234
|
+
<description><![CDATA[Weber Home<br>Default<br>KML file, track, and waypoint comment.<br>USNG: 15S WD 60826 8138<br>UTM: 15S 560826mE 4308138mN<br>Lat/Long: 38.9200473/-92.2983507<br>c:\program files\gpx2kml\test - c:\program files\gpx2kml\test]]></description>
|
235
235
|
<Point>
|
236
236
|
<coordinates>-92.2983507,38.9200473</coordinates>
|
237
237
|
</Point>
|
@@ -275,7 +275,7 @@
|
|
275
275
|
</Placemark>
|
276
276
|
<Style id="ACTIVE LOG 002_Style">
|
277
277
|
<LineStyle>
|
278
|
-
<color>
|
278
|
+
<color>f0ff0000</color>
|
279
279
|
<width>3</width>
|
280
280
|
</LineStyle>
|
281
281
|
</Style>
|
@@ -292,7 +292,7 @@
|
|
292
292
|
</Placemark>
|
293
293
|
<Style id="ACTIVE LOG 003_Style">
|
294
294
|
<LineStyle>
|
295
|
-
<color>
|
295
|
+
<color>f01400ff</color>
|
296
296
|
<width>3</width>
|
297
297
|
</LineStyle>
|
298
298
|
</Style>
|
@@ -309,7 +309,7 @@
|
|
309
309
|
</Placemark>
|
310
310
|
<Style id="ACTIVE LOG 004_Style">
|
311
311
|
<LineStyle>
|
312
|
-
<color>
|
312
|
+
<color>f014b4ff</color>
|
313
313
|
<width>3</width>
|
314
314
|
</LineStyle>
|
315
315
|
</Style>
|
data/spec/fixtures/expected.kml
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
<Style id="normalPlacemark">
|
18
18
|
<IconStyle>
|
19
19
|
<Icon>
|
20
|
-
<href>
|
20
|
+
<href>files/01.png</href>
|
21
21
|
</Icon>
|
22
22
|
</IconStyle>
|
23
23
|
</Style>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<Style id="normalPlacemark">
|
33
33
|
<IconStyle>
|
34
34
|
<Icon>
|
35
|
-
<href>
|
35
|
+
<href>files/03.png</href>
|
36
36
|
</Icon>
|
37
37
|
</IconStyle>
|
38
38
|
</Style>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<Style id="normalPlacemark">
|
48
48
|
<IconStyle>
|
49
49
|
<Icon>
|
50
|
-
<href>
|
50
|
+
<href>files/04.png</href>
|
51
51
|
</Icon>
|
52
52
|
</IconStyle>
|
53
53
|
</Style>
|
@@ -62,7 +62,7 @@
|
|
62
62
|
<Style id="normalPlacemark">
|
63
63
|
<IconStyle>
|
64
64
|
<Icon>
|
65
|
-
<href>
|
65
|
+
<href>files/11.png</href>
|
66
66
|
</Icon>
|
67
67
|
</IconStyle>
|
68
68
|
</Style>
|
@@ -77,7 +77,7 @@
|
|
77
77
|
<Style id="normalPlacemark">
|
78
78
|
<IconStyle>
|
79
79
|
<Icon>
|
80
|
-
<href>
|
80
|
+
<href>files/18.png</href>
|
81
81
|
</Icon>
|
82
82
|
</IconStyle>
|
83
83
|
</Style>
|
@@ -92,7 +92,7 @@
|
|
92
92
|
<Style id="normalPlacemark">
|
93
93
|
<IconStyle>
|
94
94
|
<Icon>
|
95
|
-
<href>
|
95
|
+
<href>files/15.png</href>
|
96
96
|
</Icon>
|
97
97
|
</IconStyle>
|
98
98
|
</Style>
|
@@ -107,7 +107,7 @@
|
|
107
107
|
<Style id="normalPlacemark">
|
108
108
|
<IconStyle>
|
109
109
|
<Icon>
|
110
|
-
<href>
|
110
|
+
<href>files/13.png</href>
|
111
111
|
</Icon>
|
112
112
|
</IconStyle>
|
113
113
|
</Style>
|
@@ -122,7 +122,7 @@
|
|
122
122
|
<Style id="normalPlacemark">
|
123
123
|
<IconStyle>
|
124
124
|
<Icon>
|
125
|
-
<href>
|
125
|
+
<href>files/14.png</href>
|
126
126
|
</Icon>
|
127
127
|
</IconStyle>
|
128
128
|
</Style>
|
@@ -137,7 +137,7 @@
|
|
137
137
|
<Style id="normalPlacemark">
|
138
138
|
<IconStyle>
|
139
139
|
<Icon>
|
140
|
-
<href>
|
140
|
+
<href>files/19.png</href>
|
141
141
|
</Icon>
|
142
142
|
</IconStyle>
|
143
143
|
</Style>
|
@@ -152,7 +152,7 @@
|
|
152
152
|
<Style id="normalPlacemark">
|
153
153
|
<IconStyle>
|
154
154
|
<Icon>
|
155
|
-
<href>
|
155
|
+
<href>files/16.png</href>
|
156
156
|
</Icon>
|
157
157
|
</IconStyle>
|
158
158
|
</Style>
|
@@ -167,7 +167,7 @@
|
|
167
167
|
<Style id="normalPlacemark">
|
168
168
|
<IconStyle>
|
169
169
|
<Icon>
|
170
|
-
<href>
|
170
|
+
<href>files/21.png</href>
|
171
171
|
</Icon>
|
172
172
|
</IconStyle>
|
173
173
|
</Style>
|
@@ -182,7 +182,7 @@
|
|
182
182
|
<Style id="normalPlacemark">
|
183
183
|
<IconStyle>
|
184
184
|
<Icon>
|
185
|
-
<href>
|
185
|
+
<href>files/22.png</href>
|
186
186
|
</Icon>
|
187
187
|
</IconStyle>
|
188
188
|
</Style>
|
@@ -197,7 +197,7 @@
|
|
197
197
|
<Style id="normalPlacemark">
|
198
198
|
<IconStyle>
|
199
199
|
<Icon>
|
200
|
-
<href>
|
200
|
+
<href>files/23.png</href>
|
201
201
|
</Icon>
|
202
202
|
</IconStyle>
|
203
203
|
</Style>
|
@@ -212,7 +212,7 @@
|
|
212
212
|
<Style id="normalPlacemark">
|
213
213
|
<IconStyle>
|
214
214
|
<Icon>
|
215
|
-
<href>
|
215
|
+
<href>files/02.png</href>
|
216
216
|
</Icon>
|
217
217
|
</IconStyle>
|
218
218
|
</Style>
|
@@ -227,7 +227,7 @@
|
|
227
227
|
<Style id="normalPlacemark">
|
228
228
|
<IconStyle>
|
229
229
|
<Icon>
|
230
|
-
<href>
|
230
|
+
<href>files/default.png</href>
|
231
231
|
</Icon>
|
232
232
|
</IconStyle>
|
233
233
|
</Style>
|
data/tf1_converter.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tf1_converter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -139,6 +139,22 @@ dependencies:
|
|
139
139
|
- - '='
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: 0.2.1
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: rubyzip
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - '='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.9.9
|
150
|
+
type: :runtime
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - '='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 0.9.9
|
142
158
|
description: A GPX to KML converter for Missouri Task Force 1
|
143
159
|
email:
|
144
160
|
- ethan.vizitei@gmail.com
|
@@ -166,6 +182,7 @@ files:
|
|
166
182
|
- lib/tf1_converter/gpx/waypoint.rb
|
167
183
|
- lib/tf1_converter/gpx_file.rb
|
168
184
|
- lib/tf1_converter/kml_file.rb
|
185
|
+
- lib/tf1_converter/kmz_file.rb
|
169
186
|
- lib/tf1_converter/translation.rb
|
170
187
|
- lib/tf1_converter/version.rb
|
171
188
|
- output/test.kml
|
@@ -192,7 +209,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
209
|
version: '0'
|
193
210
|
segments:
|
194
211
|
- 0
|
195
|
-
hash:
|
212
|
+
hash: 4209753862733167142
|
196
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
214
|
none: false
|
198
215
|
requirements:
|
@@ -201,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
218
|
version: '0'
|
202
219
|
segments:
|
203
220
|
- 0
|
204
|
-
hash:
|
221
|
+
hash: 4209753862733167142
|
205
222
|
requirements: []
|
206
223
|
rubyforge_project:
|
207
224
|
rubygems_version: 1.8.23
|