Class: RGeo::ActiveRecord::SpatialConstantNode

Inherits:
Object
  • Object
show all
Includes:
SpatialExpressions
Defined in:
lib/rgeo/active_record/arel_spatial_queries.rb

Overview

This node wraps an RGeo feature and gives it spatial expression constructors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SpatialExpressions

#st_area, #st_asbinary, #st_astext, #st_boundary, #st_buffer, #st_centroid, #st_contains, #st_convexhull, #st_crosses, #st_difference, #st_dimension, #st_disjoint, #st_distance, #st_endpoint, #st_envelope, #st_equals, #st_exteriorring, #st_function, #st_geometryn, #st_geometrytype, #st_interiorringn, #st_intersection, #st_intersects, #st_isclosed, #st_isempty, #st_isring, #st_issimple, #st_length, #st_m, #st_numgeometries, #st_numinteriorrings, #st_numpoints, #st_overlaps, #st_pointn, #st_pointonsurface, #st_relate, #st_srid, #st_startpoint, #st_symdifference, #st_touches, #st_union, #st_within, #st_x, #st_y, #st_z

Constructor Details

#initialize(delegate) ⇒ SpatialConstantNode

The delegate should be the RGeo feature.



66
67
68
# File 'lib/rgeo/active_record/arel_spatial_queries.rb', line 66

def initialize(delegate)
  @delegate = delegate
end

Instance Attribute Details

#delegateObject (readonly)

Return the RGeo feature



71
72
73
# File 'lib/rgeo/active_record/arel_spatial_queries.rb', line 71

def delegate
  @delegate
end