geospatial 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/geospatial/map.rb +6 -4
- data/lib/geospatial/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91eeac2469ee68ea87e60650e5c909a25e9af3cd
|
4
|
+
data.tar.gz: 712f71a592a0e803111c4380ebb78bd7a691f1e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bdb1fa1003101a6cd58be330b2730e75b7aeb64140297512ffa595f59e62874b101293b922d726b2974fe3378be002f96445fe21e582481b192fd337973ec71
|
7
|
+
data.tar.gz: f67b819573274641c82c356ada6b2c58275b6f612af20117145d595aa9b73ad78f5b408809da374be98d3bead97e0d50237aa3fb107d920040f1003baa9a12ee
|
data/lib/geospatial/map.rb
CHANGED
@@ -145,12 +145,14 @@ module Geospatial
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
-
def filter_for(
|
148
|
+
def filter_for(*regions, **options)
|
149
149
|
filter = Filter.new(@curve)
|
150
150
|
|
151
|
-
|
152
|
-
|
153
|
-
|
151
|
+
regions.each do |region|
|
152
|
+
# The filter will coalesce sequential segments of the curve into a single range.
|
153
|
+
traverse(region, **options) do |child, prefix, order|
|
154
|
+
filter.add(prefix, order)
|
155
|
+
end
|
154
156
|
end
|
155
157
|
|
156
158
|
return filter
|
data/lib/geospatial/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geospatial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|