nofxx-georuby 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/geo_ruby/shp4r/shp.rb +5 -5
- data/spec/geo_ruby/shp4r/shp_spec.rb +0 -1
- metadata +34 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.
|
1
|
+
1.9.2
|
data/lib/geo_ruby/shp4r/shp.rb
CHANGED
@@ -238,7 +238,7 @@ module GeoRuby
|
|
238
238
|
@shp.seek(16,IO::SEEK_CUR)#extent
|
239
239
|
ms = Array.new(num_points) {@shp.read(8).unpack("E")[0]}
|
240
240
|
points = Array.new(num_points) do |i|
|
241
|
-
Point.from_x_y_z_m(xys[i][0],xys[i][1],zs[i],ms[i])
|
241
|
+
GeoRuby::SimpleFeatures::Point.from_x_y_z_m(xys[i][0],xys[i][1],zs[i],ms[i])
|
242
242
|
end
|
243
243
|
linear_rings = Array.new(num_parts) do |i|
|
244
244
|
GeoRuby::SimpleFeatures::LinearRing.from_points(points[(parts[i])...(parts[i+1])],GeoRuby::SimpleFeatures::default_srid,true,true)
|
@@ -256,7 +256,7 @@ module GeoRuby
|
|
256
256
|
ms = Array.new(num_points) {@shp.read(8).unpack("E")[0]}
|
257
257
|
|
258
258
|
points = Array.new(num_points) do |i|
|
259
|
-
Point.from_x_y_z_m(xys[i][0],xys[i][1],zs[i],ms[i])
|
259
|
+
GeoRuby::SimpleFeatures::Point.from_x_y_z_m(xys[i][0],xys[i][1],zs[i],ms[i])
|
260
260
|
end
|
261
261
|
|
262
262
|
geometry = GeoRuby::SimpleFeatures::MultiPoint.from_points(points,GeoRuby::SimpleFeatures::default_srid,true,true)
|
@@ -274,7 +274,7 @@ module GeoRuby
|
|
274
274
|
@shp.seek(16,IO::SEEK_CUR)
|
275
275
|
ms = Array.new(num_points) {@shp.read(8).unpack("E")[0]}
|
276
276
|
points = Array.new(num_points) do |i|
|
277
|
-
Point.from_x_y_m(xys[i][0],xys[i][1],ms[i])
|
277
|
+
GeoRuby::SimpleFeatures::Point.from_x_y_m(xys[i][0],xys[i][1],ms[i])
|
278
278
|
end
|
279
279
|
line_strings = Array.new(num_parts) do |i|
|
280
280
|
GeoRuby::SimpleFeatures::LineString.from_points(points[(parts[i])...(parts[i+1])],GeoRuby::SimpleFeatures::default_srid,false,true)
|
@@ -293,7 +293,7 @@ module GeoRuby
|
|
293
293
|
@shp.seek(16,IO::SEEK_CUR)
|
294
294
|
ms = Array.new(num_points) {@shp.read(8).unpack("E")[0]}
|
295
295
|
points = Array.new(num_points) do |i|
|
296
|
-
Point.from_x_y_m(xys[i][0],xys[i][1],ms[i])
|
296
|
+
GeoRuby::SimpleFeatures::Point.from_x_y_m(xys[i][0],xys[i][1],ms[i])
|
297
297
|
end
|
298
298
|
linear_rings = Array.new(num_parts) do |i|
|
299
299
|
GeoRuby::SimpleFeatures::LinearRing.from_points(points[(parts[i])...(parts[i+1])],GeoRuby::SimpleFeatures::default_srid,false,true)
|
@@ -309,7 +309,7 @@ module GeoRuby
|
|
309
309
|
ms = Array.new(num_points) {@shp.read(8).unpack("E")[0]}
|
310
310
|
|
311
311
|
points = Array.new(num_points) do |i|
|
312
|
-
Point.from_x_y_m(xys[i][0],xys[i][1],ms[i])
|
312
|
+
GeoRuby::SimpleFeatures::Point.from_x_y_m(xys[i][0],xys[i][1],ms[i])
|
313
313
|
end
|
314
314
|
|
315
315
|
geometry = GeoRuby::SimpleFeatures::MultiPoint.from_points(points,GeoRuby::SimpleFeatures::default_srid,false,true)
|
metadata
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nofxx-georuby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 9
|
8
|
+
- 2
|
9
|
+
version: 1.9.2
|
6
10
|
platform: ruby
|
7
11
|
authors:
|
8
12
|
- Guilhem Vellut
|
@@ -13,7 +17,7 @@ autorequire:
|
|
13
17
|
bindir: bin
|
14
18
|
cert_chain: []
|
15
19
|
|
16
|
-
date: 2011-
|
20
|
+
date: 2011-04-08 00:00:00 -03:00
|
17
21
|
default_executable:
|
18
22
|
dependencies:
|
19
23
|
- !ruby/object:Gem::Dependency
|
@@ -23,6 +27,10 @@ dependencies:
|
|
23
27
|
requirements:
|
24
28
|
- - ">="
|
25
29
|
- !ruby/object:Gem::Version
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 5
|
33
|
+
- 0
|
26
34
|
version: 1.5.0
|
27
35
|
type: :development
|
28
36
|
prerelease: false
|
@@ -34,6 +42,10 @@ dependencies:
|
|
34
42
|
requirements:
|
35
43
|
- - ">="
|
36
44
|
- !ruby/object:Gem::Version
|
45
|
+
segments:
|
46
|
+
- 2
|
47
|
+
- 3
|
48
|
+
- 0
|
37
49
|
version: 2.3.0
|
38
50
|
type: :development
|
39
51
|
prerelease: false
|
@@ -45,6 +57,10 @@ dependencies:
|
|
45
57
|
requirements:
|
46
58
|
- - ">="
|
47
59
|
- !ruby/object:Gem::Version
|
60
|
+
segments:
|
61
|
+
- 1
|
62
|
+
- 0
|
63
|
+
- 0
|
48
64
|
version: 1.0.0
|
49
65
|
type: :development
|
50
66
|
prerelease: false
|
@@ -56,6 +72,8 @@ dependencies:
|
|
56
72
|
requirements:
|
57
73
|
- - ">="
|
58
74
|
- !ruby/object:Gem::Version
|
75
|
+
segments:
|
76
|
+
- 0
|
59
77
|
version: "0"
|
60
78
|
type: :development
|
61
79
|
prerelease: false
|
@@ -67,6 +85,10 @@ dependencies:
|
|
67
85
|
requirements:
|
68
86
|
- - ">="
|
69
87
|
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 2
|
90
|
+
- 0
|
91
|
+
- 0
|
70
92
|
version: 2.0.0
|
71
93
|
type: :development
|
72
94
|
prerelease: false
|
@@ -78,6 +100,10 @@ dependencies:
|
|
78
100
|
requirements:
|
79
101
|
- - ">="
|
80
102
|
- !ruby/object:Gem::Version
|
103
|
+
segments:
|
104
|
+
- 1
|
105
|
+
- 2
|
106
|
+
- 9
|
81
107
|
version: 1.2.9
|
82
108
|
type: :development
|
83
109
|
prerelease: false
|
@@ -178,17 +204,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
204
|
requirements:
|
179
205
|
- - ">="
|
180
206
|
- !ruby/object:Gem::Version
|
207
|
+
segments:
|
208
|
+
- 0
|
181
209
|
version: "0"
|
182
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
211
|
none: false
|
184
212
|
requirements:
|
185
213
|
- - ">="
|
186
214
|
- !ruby/object:Gem::Version
|
215
|
+
segments:
|
216
|
+
- 0
|
187
217
|
version: "0"
|
188
218
|
requirements: []
|
189
219
|
|
190
220
|
rubyforge_project:
|
191
|
-
rubygems_version: 1.
|
221
|
+
rubygems_version: 1.3.7
|
192
222
|
signing_key:
|
193
223
|
specification_version: 3
|
194
224
|
summary: Ruby data holder for OGC Simple Features
|