spatial_features 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spatial_features/venn_polygons.rb +2 -2
- data/lib/spatial_features/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: 1a7122350d682567036a4ced4d0f02fa1e24f6fe
|
4
|
+
data.tar.gz: 3a30f1f18b42f0aa5d76dcd695a985ed38ab7eb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc7be6e44faccb577d56ba0a15b3bb85061b6166e2108f95e98815ed7b0cda516c973ececc0894bb533a92f6458ca584c4692777e0df873a22af33b351c4054
|
7
|
+
data.tar.gz: 82076004699c948c14209121a93fd4b5131da27438e9369fa40e02b7dfebfa5783304365bc87f6cfde9f53298fd9ea0803560c27a8619bc2d4b49c1a14141df6
|
@@ -4,7 +4,7 @@ module SpatialFeatures
|
|
4
4
|
def self.venn_polygons(*scopes)
|
5
5
|
options = scopes.extract_options!
|
6
6
|
scope = scopes.collect do |scope|
|
7
|
-
scope.
|
7
|
+
scope.joins(:features).where('features.feature_type = ?', 'polygon').except(:select).select("features.geom AS the_geom").to_sql
|
8
8
|
end.join(' UNION ')
|
9
9
|
|
10
10
|
sql = "
|
@@ -34,7 +34,7 @@ module SpatialFeatures
|
|
34
34
|
|
35
35
|
# Join with the original polygons so we can determine which original polygons each venn polygon came from
|
36
36
|
scope = scopes.collect do |scope|
|
37
|
-
scope.
|
37
|
+
scope.joins(:features).where('features.feature_type = ?', 'polygon').except(:select).select("#{scope.klass.table_name}.id, features.spatial_model_type AS type, features.geom").to_sql
|
38
38
|
end.join(' UNION ')
|
39
39
|
sql <<
|
40
40
|
"INNER JOIN (#{scope}) AS scope
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spatial_features
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Wallace
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|