Class: GeographicItem::MultiLineString
- Inherits:
-
GeographicItem
- Object
- GeographicItem
- GeographicItem::MultiLineString
- Defined in:
- app/models/geographic_item/multi_line_string.rb
Overview
Multi line string definition…
Constant Summary collapse
- SHAPE_COLUMN =
:multi_line_string
Instance Method Summary collapse
- #rendering_hash ⇒ Hash
-
#st_start_point ⇒ RGeo::Point
First point in the first line_string.
-
#to_a ⇒ Array
Arrays of points.
Instance Method Details
#rendering_hash ⇒ Hash
18 19 20 |
# File 'app/models/geographic_item/multi_line_string.rb', line 18 def rendering_hash multi_line_string_to_hash(self.multi_line_string) end |
#st_start_point ⇒ RGeo::Point
Returns first point in the first line_string.
13 14 15 |
# File 'app/models/geographic_item/multi_line_string.rb', line 13 def st_start_point geo_object[0].point_n(0) end |
#to_a ⇒ Array
Returns arrays of points.
8 9 10 |
# File 'app/models/geographic_item/multi_line_string.rb', line 8 def to_a multi_line_string_to_a(self.multi_line_string) end |