Class: Osmer::Mapper::Area

Inherits:
Base
  • Object
show all
Defined in:
lib/osmer/mapper/area.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #table

Instance Method Summary collapse

Methods inherited from Base

#conditions, #indexes, #initialize

Constructor Details

This class inherits a constructor from Osmer::Mapper::Base

Instance Method Details

#assignsObject



5
6
7
# File 'lib/osmer/mapper/area.rb', line 5

def assigns
  { :area => "ST_Area(ST_Transform(src_geometry,#{table.projection}))" }
end

#fieldsObject



9
10
11
# File 'lib/osmer/mapper/area.rb', line 9

def fields
  { :area => "REAL" }
end