Class: Geos::MultiLineString
- Inherits:
-
GeometryCollection
- Object
- GeometryCollection
- Geos::MultiLineString
- Defined in:
- lib/geos/multi_line_string.rb
Instance Method Summary collapse
- #to_geojsonable(options = {}) ⇒ Object (also: #as_geojson)
Methods inherited from GeometryCollection
#[], #as_json, #each, #last, #to_georss, #to_kml
Instance Method Details
#to_geojsonable(options = {}) ⇒ Object Also known as: as_geojson
4 5 6 7 8 9 10 11 |
# File 'lib/geos/multi_line_string.rb', line 4 def to_geojsonable( = {}) { :type => 'MultiLineString', :coordinates => self.to_a.collect { |linestring| linestring.coord_seq.to_a } } end |