app/models/feature.rb in spatial_features-2.0.0 vs app/models/feature.rb in spatial_features-2.1.0
- old
+ new
@@ -112,10 +112,10 @@
def make_valid
self.geog = ActiveRecord::Base.connection.select_value("SELECT ST_CollectionExtract(ST_MakeValid('#{sanitize}'),3)")
end
- # Use ST_Force_2D to discard z-coordinates that cause failures later in the process
+ # Use ST_Force2D to discard z-coordinates that cause failures later in the process
def sanitize
self.geog = ActiveRecord::Base.connection.select_value("SELECT ST_Force2D('#{geog}')")
end
def self.detect_srid(column_name)