spatial_features 1.5.9 → 1.5.10
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 → app}/models/feature.rb +9 -1
- data/{lib/spatial_features → app}/models/spatial_cache.rb +0 -0
- data/{lib/spatial_features → app}/models/spatial_proximity.rb +0 -0
- data/lib/spatial_features/version.rb +1 -1
- data/lib/spatial_features.rb +0 -4
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0307a9516187c3bbfed164e679d85d8aafd88d52
|
4
|
+
data.tar.gz: 877f85316e78c8fb6f8737069287bde6c83d0c94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1fdb2c6f5bd8a813fd21587bc526fc40bd620c2331fc1ad80ee0d3e75688b26bbdd64c1404223899efee68834b76a577400b5f86120ede72aa38603024c906
|
7
|
+
data.tar.gz: bb5616750ff468513c2acf1334217892c48d19624f6b2d6015467526d2910d69a0706aab491eac28901e9ba2c8d036f48d47b874bc21c98375fc561faa2f0c63
|
@@ -65,10 +65,18 @@ class Feature < ActiveRecord::Base
|
|
65
65
|
geog_lowres = ST_SimplifyPreserveTopology(geog::geometry, #{options[:lowres_simplification]})"
|
66
66
|
.squish)
|
67
67
|
update_all("kml = ST_AsKML(features.geog, 6),
|
68
|
-
kml_lowres = ST_AsKML(geog_lowres::geometry, #{options[:lowres_precision]})
|
68
|
+
kml_lowres = ST_AsKML(geog_lowres::geometry, #{options[:lowres_precision]}),
|
69
|
+
north = ST_YMax(ST_Transform (geom, 4326)),
|
70
|
+
east = ST_XMax(ST_Transform (geom, 4326)),
|
71
|
+
south = ST_YMin(ST_Transform (geom, 4326)),
|
72
|
+
west = ST_XMin(ST_Transform (geom, 4326))"
|
69
73
|
.squish)
|
70
74
|
end
|
71
75
|
|
76
|
+
def feature_bounds
|
77
|
+
{n: north, e: east, s: south, w: west}
|
78
|
+
end
|
79
|
+
|
72
80
|
def cache_derivatives(*args)
|
73
81
|
self.class.where(:id => self.id).cache_derivatives(*args)
|
74
82
|
end
|
File without changes
|
File without changes
|
data/lib/spatial_features.rb
CHANGED
@@ -7,10 +7,6 @@ require 'spatial_features/import/arcgis_kmz_features'
|
|
7
7
|
|
8
8
|
require 'spatial_features/controller_helpers/spatial_extensions'
|
9
9
|
|
10
|
-
require 'spatial_features/models/feature'
|
11
|
-
require 'spatial_features/models/spatial_cache'
|
12
|
-
require 'spatial_features/models/spatial_proximity'
|
13
|
-
|
14
10
|
require 'spatial_features/workers/arcgis_update_features_job'
|
15
11
|
|
16
12
|
require 'spatial_features/engine'
|
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.5.
|
4
|
+
version: 1.5.10
|
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: 2016-
|
12
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -83,6 +83,9 @@ files:
|
|
83
83
|
- MIT-LICENSE
|
84
84
|
- README.md
|
85
85
|
- Rakefile
|
86
|
+
- app/models/feature.rb
|
87
|
+
- app/models/spatial_cache.rb
|
88
|
+
- app/models/spatial_proximity.rb
|
86
89
|
- config/initializers/register_oids.rb
|
87
90
|
- lib/spatial_features.rb
|
88
91
|
- lib/spatial_features/caching.rb
|
@@ -90,9 +93,6 @@ files:
|
|
90
93
|
- lib/spatial_features/engine.rb
|
91
94
|
- lib/spatial_features/has_spatial_features.rb
|
92
95
|
- lib/spatial_features/import/arcgis_kmz_features.rb
|
93
|
-
- lib/spatial_features/models/feature.rb
|
94
|
-
- lib/spatial_features/models/spatial_cache.rb
|
95
|
-
- lib/spatial_features/models/spatial_proximity.rb
|
96
96
|
- lib/spatial_features/venn_polygons.rb
|
97
97
|
- lib/spatial_features/version.rb
|
98
98
|
- lib/spatial_features/workers/arcgis_update_features_job.rb
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.5.1
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Adds spatial methods to a model.
|