class GeojsonModel::FeatureCollection

Public Instance Methods

to_geometry_collection() click to toggle source

@return [GeometryCollection]

# File lib/geojson_model/feature_collection.rb, line 11
def to_geometry_collection
  GeometryCollection.new(geometries: features.map(&:geometry))
end