spatial_features 2.2.1 → 2.2.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
  SHA1:
3
- metadata.gz: 259be37c51aededd2cab4dbf5360f354e81a9276
4
- data.tar.gz: 4f2ca481a03263d6194aa912e1e08eb7098a5d7c
3
+ metadata.gz: 719c3ecae256a4ccc467f6ae09f2db52f7a087b4
4
+ data.tar.gz: 06d8012355564e46386fbfe327e915f3b9fa832d
5
5
  SHA512:
6
- metadata.gz: cb05230aefb59d2bdf910576811d8ee4da565248e267fc98994dd67984ae25c1f9451b01b2d46368f5adbad8645dbd9c7b82200e2f902179f6da9710b93f478b
7
- data.tar.gz: e635c67d584bd98c245d17b8d26f77140f4703dbf2719e6e50e70dae2be4260b3f65b98d53872653e0ba41d8df2f9d7bc43323b2cc71e5c597c2048a09a32565
6
+ metadata.gz: e6e2990a278cf521a7857e6d1614c2d5be861c534e1f18dfeb1f2f81999808a54f51b2bc348745ffed684857dd62dbc36913ef9b92d7ba10c1cd4c78579cefc5
7
+ data.tar.gz: a236dcca05df37c76befe0be99b318aea0118e120822e0783d6415444ebdde7ca08c1315a1a9258c5eff3b1d05e51c182bad04d4599750ac374bf45e5fd91f9a
@@ -78,14 +78,18 @@ class Feature < ActiveRecord::Base
78
78
  centroid = ST_PointOnSurface(geog::geometry)
79
79
  SQL
80
80
 
81
- invalid('geom').update_all <<-SQL
82
- geom = ST_Buffer(geom, 0)
81
+ invalid('geom').update_all <<-SQL.squish
82
+ geom = ST_Buffer(geom, 0)
83
83
  SQL
84
84
 
85
85
  update_all <<-SQL.squish
86
86
  geom_lowres = ST_SimplifyPreserveTopology(geom, #{options[:lowres_simplification]})
87
87
  SQL
88
88
 
89
+ invalid('geom_lowres').update_all <<-SQL.squish
90
+ geom_lowres = ST_Buffer(geom_lowres, 0)
91
+ SQL
92
+
89
93
  update_all <<-SQL.squish
90
94
  kml = ST_AsKML(geog, 6),
91
95
  kml_lowres = ST_AsKML(geom_lowres, #{options[:lowres_precision]}),
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
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: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace