charta 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: c8714ebcfc89f8507cf20d24450bfe64537f2466
4
- data.tar.gz: 753ff77066f3443fb8fca493cbd4edf64011046c
3
+ metadata.gz: e1ebd7fd8007ba50a0fd0b0a4fbbf6449a25f58a
4
+ data.tar.gz: 0f64a9330f1b9dd64e4070f4b1c2721c1ff87bf7
5
5
  SHA512:
6
- metadata.gz: 10908d9cc9e07db0b3699f2b640324d2a4f96368ead65f26c74d15ab46374f452374306b19603ca3a891d88f5356171d8d5b8ccbed481b062a5ba357e4f30a99
7
- data.tar.gz: 674cb95b22abc9604d7eaeb9076c805d3afc752af532260f586810457d99f774823abcfe309c98906afed1945588efb4453f216ce11474bc737eedcc65480f8f
6
+ metadata.gz: b3d86e98cfae5d05b12b27f745a46a27802aedfcd3b54ae173c32421b4ca7882abc0f510dd234441086c5620e2a460362cf9cc08f8c0b79cb39f0ff7cde592a2
7
+ data.tar.gz: 82d85768aca4670d5885ec144062d774860e9c70954c69f0093b80520ec15fe667776599d4ec1cb27c5c1078625f8939d5af2f43acd2d6ae21e178ca63ed0ebc
@@ -49,7 +49,11 @@ module Charta
49
49
  elsif format == 'kml' && ::Charta::KML.valid?(coordinates)
50
50
  ::Charta::KML.new(coordinates).to_ewkt
51
51
  elsif coordinates =~ /^SRID\=\d+\;/i
52
- generate_ewkt Geometry.feature(coordinates)
52
+ if feature = Geometry.feature(coordinates)
53
+ generate_ewkt feature
54
+ else
55
+ Charta::GeometryCollection.empty.feature
56
+ end
53
57
  else # WKT expected
54
58
  if srs && srid = find_srid(srs)
55
59
  begin
@@ -1,3 +1,3 @@
1
1
  module Charta
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice TEXIER