class GeojsonModel::GeometryCollection

Public Instance Methods

to_feature_collection() click to toggle source

@return [FeatureCollection]

# File lib/geojson_model/geometry_collection.rb, line 11
def to_feature_collection
  FeatureCollection.new(features: geometries.map { |geo| Feature.new(geometry: geo) })
end