module Arel

Public Class Methods

spatial(arg) click to toggle source

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.

# File lib/rgeo/active_record/spatial_expressions.rb, line 253
def self.spatial(arg)
  RGeo::ActiveRecord::SpatialConstantNode.new(arg)
end