Class: Ropenlayer::Node

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/ropenlayer/node.rb

Constant Summary collapse

GEOMETRY_TYPES =
%w( POINT LINESTRING POLYGON )

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#geometry_stringObject

Returns the value of attribute geometry_string.



4
5
6
# File 'lib/ropenlayer/node.rb', line 4

def geometry_string
  @geometry_string
end

Instance Method Details

#main_latitudeObject



30
31
32
# File 'lib/ropenlayer/node.rb', line 30

def main_latitude
  self.localizations.first ? self.localizations.first.latitude : nil
end

#main_longitudeObject



34
35
36
# File 'lib/ropenlayer/node.rb', line 34

def main_longitude
  self.localizations.first ? self.localizations.first.longitude : nil
end