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 +4 -4
- data/lib/charta.rb +5 -1
- data/lib/charta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1ebd7fd8007ba50a0fd0b0a4fbbf6449a25f58a
|
4
|
+
data.tar.gz: 0f64a9330f1b9dd64e4070f4b1c2721c1ff87bf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3d86e98cfae5d05b12b27f745a46a27802aedfcd3b54ae173c32421b4ca7882abc0f510dd234441086c5620e2a460362cf9cc08f8c0b79cb39f0ff7cde592a2
|
7
|
+
data.tar.gz: 82d85768aca4670d5885ec144062d774860e9c70954c69f0093b80520ec15fe667776599d4ec1cb27c5c1078625f8939d5af2f43acd2d6ae21e178ca63ed0ebc
|
data/lib/charta.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/charta/version.rb
CHANGED