Class: Ropenlayer::Node
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ropenlayer::Node
- Defined in:
- lib/ropenlayer/node.rb
Constant Summary collapse
- GEOMETRY_TYPES =
%w( POINT LINESTRING POLYGON )
Instance Attribute Summary collapse
-
#geometry_string ⇒ Object
Returns the value of attribute geometry_string.
Instance Method Summary collapse
Instance Attribute Details
#geometry_string ⇒ Object
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_latitude ⇒ Object
30 31 32 |
# File 'lib/ropenlayer/node.rb', line 30 def main_latitude self.localizations.first ? self.localizations.first.latitude : nil end |
#main_longitude ⇒ Object
34 35 36 |
# File 'lib/ropenlayer/node.rb', line 34 def main_longitude self.localizations.first ? self.localizations.first.longitude : nil end |