geojson2image 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/geojson2image.gemspec +1 -1
- data/lib/geojson2image.rb +3 -3
- data/lib/geojson2image/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 869a6ee505c2bfc4d2e11f74058260f1f04f2ad6
|
4
|
+
data.tar.gz: 61ca037b25096bbe65f48ee08f4e871d5a1f3dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a555567cfbf41468cfb5b00ba0de420522b5fb9eaed393dbfa9527a9a4732a17b1b3cd226458a816688d175286a9b4d58598d930dec6506abe71cba4daaa2257
|
7
|
+
data.tar.gz: 918a91049e936dc9eb1f7d41fa652465c68640de2a4155b8db1b2e4c3e96b5b6d42f5f7f0158825215bf791bb8efad6ddb336b652db25ec17d2d3a2f879ad50b
|
data/geojson2image.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "geojson2image"
|
8
8
|
spec.version = Geojson2image::VERSION
|
9
9
|
spec.authors = ["Bryce Johnston"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["bryce@agdeveloper.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Ruby library for generating images from GeoJSON}
|
13
13
|
spec.description = %q{Ruby library for generating images from GeoJSON}
|
data/lib/geojson2image.rb
CHANGED
@@ -198,13 +198,13 @@ module Geojson2image
|
|
198
198
|
|
199
199
|
when 'Polygon'
|
200
200
|
if !properties.nil?
|
201
|
-
if properties.key?('fill_color')
|
201
|
+
if properties.key?('fill_color') && !properties['fill_color'].nil?
|
202
202
|
@convert.fill(properties['fill_color'])
|
203
203
|
end
|
204
|
-
if properties.key?('stroke_color')
|
204
|
+
if properties.key?('stroke_color') && !properties['stroke_color'].nil?
|
205
205
|
@convert.stroke(properties['stroke_color'])
|
206
206
|
end
|
207
|
-
if properties.key?('stroke_width')
|
207
|
+
if properties.key?('stroke_width') && !properties['stroke_width'].nil?
|
208
208
|
@convert.strokewidth(properties['stroke_width'])
|
209
209
|
end
|
210
210
|
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.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryce Johnston
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
version: '3.0'
|
83
83
|
description: Ruby library for generating images from GeoJSON
|
84
84
|
email:
|
85
|
-
-
|
85
|
+
- bryce@agdeveloper.com
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|