lib/turf/helpers.rb
def geometry_collection(geometries, bbox: nil, id: nil, properties: {})
    geom = {
      type: "GeometryCollection",
      geometries: geometries
    }

    feature(geom, properties: properties, bbox: bbox, id: id)
  end
# Creates a Feature based on a coordinate array. Properties can be added optionally.
# @see https://turfjs.org/docs/#geometryCollection
# @param geometries [Array<Geometry>] an array of GeoJSON Geometries
# @param properties [Hash] a Hash of key-value pairs to add as properties
# @param bbox [Array<number>] Bounding Box Array [west, south, east, north] associated with the Feature
# @param id [string|number] Identifier associated with the Feature
# @return [Feature<GeometryCollection>] a GeoJSON GeometryCollection Feature
Creates a Feature based on a coordinate array. Properties can be added optionally.
Creates a Feature based on a coordinate array . Properties can be added optionally .
def geometry_collection(geometries, bbox: nil, id: nil, properties: {})
    geom = {
      type: "GeometryCollection",
      geometries: geometries
    }
    feature(geom, properties: properties, bbox: bbox, id: id)
  end
def geometry_collection ( geometries , bbox : nil , id : nil , properties : { } ) geom = { type : "GeometryCollection" , geometries : geometries } feature ( geom , properties : properties , bbox : bbox , id : id ) end
Creates a Feature based on a coordinate array.
Creates a Feature based on a coordinate array .
a GeoJSON GeometryCollection Feature
a GeoJSON GeometryCollection Feature
Feature<GeometryCollection>
geometries
an array of GeoJSON Geometries
an array of GeoJSON Geometries
bbox
Bounding Box Array [west, south, east, north] associated with the Feature
Bounding Box Array [ west south east north ] associated with the Feature
id
Identifier associated with the Feature
Identifier associated with the Feature
properties
a Hash of key-value pairs to add as properties
a Hash of key - value pairs to add as properties
see
None