rgeo-geojson 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +5 -0
- data/lib/rgeo-geojson.rb +2 -0
- data/lib/rgeo/geo_json.rb +2 -0
- data/lib/rgeo/geo_json/coder.rb +3 -1
- data/lib/rgeo/geo_json/entities.rb +2 -0
- data/lib/rgeo/geo_json/interface.rb +2 -0
- data/lib/rgeo/geo_json/version.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea734285d614e1301d41808430a05d9dbb4e8552159b037ea653556e88fd79e3
|
4
|
+
data.tar.gz: 7561c7640b2a74b82bb4f20a1995f641071fd698eb2cee50e77395c3209b9bdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a67279b3edd9290fb455b8ffde0fa0b5f0207f938fc805c0d2caa53a71b895bb1fb09ef990a9b98786be9cc343a65c16107745193d7be934efe619341b4909c9
|
7
|
+
data.tar.gz: 4775eacc655a9cd60c927644c483e0ac522b5e94dcbb36ca2867168ba97bc1fa59a24c7fbcf364d5933b0105cbc4112982b7322da1160a6f67804755875eefd2
|
data/History.md
CHANGED
data/lib/rgeo-geojson.rb
CHANGED
data/lib/rgeo/geo_json.rb
CHANGED
data/lib/rgeo/geo_json/coder.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module RGeo
|
2
4
|
module GeoJSON
|
3
5
|
# This object encapsulates encoding and decoding settings (principally
|
@@ -193,7 +195,7 @@ module RGeo
|
|
193
195
|
|
194
196
|
def decode_point_coords(point_coords)
|
195
197
|
return unless point_coords.is_a?(Array)
|
196
|
-
@geo_factory.point(*
|
198
|
+
@geo_factory.point(*point_coords[0...@num_coordinates].map(&:to_f)) rescue nil
|
197
199
|
end
|
198
200
|
|
199
201
|
def decode_line_string_coords(line_coords)
|