Module: ActiveRecordSpatial::SpatialScopeConstants

Defined in:
lib/activerecord-spatial/spatial_scope_constants.rb,
lib/activerecord-spatial/spatial_scope_constants/postgis_2_0.rb,
lib/activerecord-spatial/spatial_scope_constants/postgis_2_2.rb,
lib/activerecord-spatial/spatial_scope_constants/postgis_legacy.rb

Constant Summary collapse

RELATIONSHIPS =
%w{
  contains
  containsproperly
  covers
  coveredby
  crosses
  disjoint
  equals
  intersects
  orderingequals
  overlaps
  touches
  within
}
ZERO_ARGUMENT_MEASUREMENTS =
%w{
  area
  ndims
  npoints
  nrings
  numgeometries
  numinteriorring
  numinteriorrings
  numpoints
  length
  length2d
  perimeter
  perimeter2d
}
ONE_GEOMETRY_ARGUMENT_MEASUREMENTS =
%w{
  distance
  distancesphere
  maxdistance
}
ONE_GEOMETRY_ARGUMENT_AND_ONE_ARGUMENT_RELATIONSHIPS =
%w{
  dwithin
  dfullywithin
}
FUNCTION_ALIASES =
{
  'order_by_st_max_distance' => 'order_by_st_maxdistance',
  'st_geometrytype' => 'st_geometry_type'
}
COMPATIBILITY_FUNCTION_ALIASES =
{}
ONE_ARGUMENT_MEASUREMENTS =
%w{
  3dlength_spheroid
  length2d_spheroid
  length_spheroid
}