Class: Osmer::Mapper::Length
Instance Attribute Summary
Attributes inherited from Base
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
#assigns ⇒ Object
5 6 7 |
# File 'lib/osmer/mapper/length.rb', line 5 def assigns { :area => "ST_Length(ST_Transform(src_geometry,#{table.projection}))" } end |
#fields ⇒ Object
9 10 11 |
# File 'lib/osmer/mapper/length.rb', line 9 def fields { :area => "REAL" } end |