Class: Geos::MultiPoint
- Inherits:
-
GeometryCollection
- Object
- GeometryCollection
- Geos::MultiPoint
- Defined in:
- lib/geos/multi_point.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_point.rb', line 4 def to_geojsonable( = {}) { :type => 'MultiPoint', :coordinates => self.to_a.collect { |point| point.to_a } } end |