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.

Requires Arel 2.1 or later.



266
267
268
# File 'lib/rgeo/active_record/spatial_expressions.rb', line 266

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