Class: GeoRuby::SimpleFeatures::MultiPoint
- Inherits:
-
Object
- Object
- GeoRuby::SimpleFeatures::MultiPoint
- Defined in:
- lib/geojson.rb
Instance Method Summary collapse
Instance Method Details
#to_json(options = nil) ⇒ Object
81 82 83 84 85 |
# File 'lib/geojson.rb', line 81 def to_json( = nil) coords = self.geometries.collect {|geom| [geom.x, geom.y] } {:type => "MultiPoint", :coordinates => coords}.to_json() end |