charta 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 +5 -5
- data/lib/charta/geometry.rb +14 -16
- data/lib/charta/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5cef2f555beb27d13a0cbc3bbc24f64f9143d2cb
|
4
|
+
data.tar.gz: 64f46d959388ca952edbb53e8deb4a887335bc9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99614ef99edfdbd74e8d107279a1e8533b887cc3e4e503ba7355c60f964a4aeb95e5778debd35dc3fd4c385c61c3a199f412ac1252691accf0b079e60530b99d
|
7
|
+
data.tar.gz: 4abce4b81dd5ccab25fcb6778b896615c627d389aec8cd465301595ff9e171f1af7c64bb1f1b7f3947d4d9b73ca5a16cc23c508303796e254f57a92ac0f7a56d
|
data/lib/charta/geometry.rb
CHANGED
@@ -258,6 +258,20 @@ module Charta
|
|
258
258
|
{ type: 'Feature', properties: properties, geometry: to_json_object }
|
259
259
|
end
|
260
260
|
|
261
|
+
def method_missing(name, *args, &block)
|
262
|
+
target = to_rgeo
|
263
|
+
if target.respond_to? name
|
264
|
+
target.send name, *args
|
265
|
+
else
|
266
|
+
raise StandardError.new("Method #{name} does not exist for #{self.class.name}")
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
def respond_to_missing?(name, include_private = false)
|
271
|
+
return false if name == :init_with
|
272
|
+
super
|
273
|
+
end
|
274
|
+
|
261
275
|
class << self
|
262
276
|
def srs_database
|
263
277
|
@srs_database ||= RGeo::CoordSys::SRSDatabase::Proj4Data.new('epsg', authority: 'EPSG', cache: true)
|
@@ -338,22 +352,6 @@ module Charta
|
|
338
352
|
projection_proj4: proj4
|
339
353
|
)
|
340
354
|
end
|
341
|
-
|
342
|
-
def method_missing(name, *args, &block)
|
343
|
-
target = to_rgeo
|
344
|
-
if target.respond_to? name
|
345
|
-
target.send name, *args
|
346
|
-
else
|
347
|
-
raise StandardError.new("Method #{name} does not exist for #{self.class.name}")
|
348
|
-
end
|
349
|
-
end
|
350
|
-
|
351
|
-
def respond_to_missing?(name, include_private = false)
|
352
|
-
return false if name == :init_with
|
353
|
-
return true if to_rgeo.respond_to? name, include_private
|
354
|
-
super
|
355
|
-
end
|
356
|
-
|
357
355
|
end
|
358
356
|
end
|
359
357
|
end
|
data/lib/charta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice TEXIER
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -200,7 +200,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
|
203
|
+
rubyforge_project:
|
204
|
+
rubygems_version: 2.5.2.3
|
204
205
|
signing_key:
|
205
206
|
specification_version: 4
|
206
207
|
summary: Simple tool over geos and co
|