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.


259
260
261
# File 'lib/rgeo/active_record/spatial_expressions.rb', line 259

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