Module: Arel

Defined in:
lib/rgeo/active_record/spatial_expressions.rb

Class Method Summary collapse

Class Method Details

.spatial(arg) ⇒ Object

Create a spatial constant node. This node wraps a spatial value (such as an RGeo feature or a text string in WKT format). It supports chaining with the functions defined by RGeo::ActiveRecord::SpatialExpressions.



253
254
255
# File 'lib/rgeo/active_record/spatial_expressions.rb', line 253

def self.spatial(arg)
  RGeo::ActiveRecord::SpatialConstantNode.new(arg)
end