app/models/feature.rb in spatial_features-2.2.1 vs app/models/feature.rb in spatial_features-2.2.2

- old
+ new

@@ -76,15 +76,19 @@ west = ST_XMin(geog::geometry), area = ST_Area(geog), centroid = ST_PointOnSurface(geog::geometry) SQL - invalid('geom').update_all <<-SQL - geom = ST_Buffer(geom, 0) + invalid('geom').update_all <<-SQL.squish + geom = ST_Buffer(geom, 0) SQL update_all <<-SQL.squish geom_lowres = ST_SimplifyPreserveTopology(geom, #{options[:lowres_simplification]}) + SQL + + invalid('geom_lowres').update_all <<-SQL.squish + geom_lowres = ST_Buffer(geom_lowres, 0) SQL update_all <<-SQL.squish kml = ST_AsKML(geog, 6), kml_lowres = ST_AsKML(geom_lowres, #{options[:lowres_precision]}),