geojson2image 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5f4d8a2517650fec48a157253308edc3012cddef9cfd53013dc111d6aec65c7
4
- data.tar.gz: a092b7c91a0fb1323049b72e8c1068b5d6b456a190402beb33d95732db0737df
3
+ metadata.gz: 0b8858702642316e6e0a77abed4ecf6433c7564a955e000986e8d27ef42468ed
4
+ data.tar.gz: d1c6e441d97b3e5d24da7bde8be6f75851ad5c8369e82b7a70a6dd1cc369037d
5
5
  SHA512:
6
- metadata.gz: 79400af28d504d48cd56ad9fd1c3b3e3f2b43fe6324b6cf876b776379cc99d15cfcf80fcc8b95dd573371c4bede7c2a6728d99de48a90118c167ae1cbb9c76f0
7
- data.tar.gz: 568e84a410e00ee3f8fc04d0488e17071f5259ce71f3d197cb7982f7efdcc5d892c58460e946c60e5dadfa0f080d9a0dfc50d049b31e07838fa5dbb673311abd
6
+ metadata.gz: 4150d0ea1b149e3c0597468190cb7dfafe80aecc7e44e4a97761b05d20b540cd75b2e8a11546f2480bb6aeae977d9a8b43189b16c92225e916e546f27fec9796
7
+ data.tar.gz: 65cd6c097fc97c8655efa87750442a9e41b5d1e1601fb05f49d234069811b0634eacb4ae523698ad7b5407da5a71d8c8b5f6f02a2ac5a7984c1a4fc15e3aef52
@@ -205,20 +205,18 @@ module Geojson2image
205
205
  end
206
206
  end
207
207
 
208
+ border_points = []
208
209
  json['coordinates'].each do |linestrings|
209
- border_points = []
210
210
  if linestrings[0] != linestrings[linestrings.count - 1]
211
211
  linestrings << linestrings[0]
212
212
  end
213
-
214
213
  linestrings.each do |point|
215
214
  new_point = transform_point(point)
216
215
  border_points << "#{new_point[0]},#{new_point[1]}"
217
216
  end
218
-
219
- points = ChunkyPNG::Vector.multiple_from_string(border_points.join(", "))
220
- @png.polygon(points, tmp_stroke, tmp_fill)
221
217
  end
218
+ points = ChunkyPNG::Vector.multiple_from_string(border_points.join(", "))
219
+ @png.polygon(points, tmp_stroke, tmp_fill)
222
220
 
223
221
  when 'MultiPolygon'
224
222
  json['coordinates'].each do |polygon|
@@ -1,3 +1,3 @@
1
1
  module Geojson2image
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geojson2image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryce Johnston
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj