spatial_features 3.4.0 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6d46bc910c82f59f8dd93bbd1acebd4c9f16ea7b549615ba11fd873a586b54
|
4
|
+
data.tar.gz: 3d0b3682100055904fc403d872b9ed368abb4c19ebe1154c8e057f1105a3a25f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d80268d841701617edb70c129f94bba4ada269c850c56cc3a50fd93f97846b19c295aaeb004a05f64cae07cf392a6bb51ef13d922db593ce850729a22e5a240b
|
7
|
+
data.tar.gz: 895b642f76622a38f3651a95225c1308a6de2652c1b9dd262e8c0f2ca3778a0a91860c30a6a11d801ad01ee3f4e90744ca92ed34b548ba86c57010bb59fc1433
|
@@ -37,6 +37,10 @@ class AbstractFeature < ActiveRecord::Base
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
def self.metadata_keys
|
41
|
+
unscope(:select, :order, :includes).distinct.pluck('skeys(metadata)')
|
42
|
+
end
|
43
|
+
|
40
44
|
def self.polygons
|
41
45
|
where(:feature_type => 'polygon')
|
42
46
|
end
|
@@ -138,7 +142,7 @@ class AbstractFeature < ActiveRecord::Base
|
|
138
142
|
# Result is a hex string representing the desired binary output so we need to convert it to binary
|
139
143
|
result = SpatialFeatures::Utils.select_db_value(select_sql)
|
140
144
|
result.remove!(/^\\x/)
|
141
|
-
result = result.
|
145
|
+
result = [result].pack('H*')
|
142
146
|
|
143
147
|
return result
|
144
148
|
end
|
@@ -186,7 +186,16 @@ module SpatialFeatures
|
|
186
186
|
end
|
187
187
|
|
188
188
|
def features_cache_key
|
189
|
-
|
189
|
+
fck =
|
190
|
+
if has_spatial_features_hash?
|
191
|
+
features_hash
|
192
|
+
elsif association(:aggregate_feature).loaded?
|
193
|
+
aggregate_feature.cache_key
|
194
|
+
else
|
195
|
+
aggregate_features.cache_key
|
196
|
+
end
|
197
|
+
|
198
|
+
"#{self.class.name}/#{id}-#{fck}"
|
190
199
|
end
|
191
200
|
|
192
201
|
def polygons?
|
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: 3.4.
|
4
|
+
version: 3.4.2
|
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: 2023-10-
|
12
|
+
date: 2023-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|