Skip to content

Collection

rustac.collection_from_id_and_items

collection_from_id_and_items(
    id: str, items: list[dict[str, Any]]
) -> dict[str, Any]

Creates a collection from an id and some items.

The extents will be calculated from the items, and the items will be linked.

Parameters:

  • id (str) –

    The collection id

  • items (list[dict[str, Any]]) –

    A list of STAC items

Returns:

  • dict[str, Any]

    A STAC collection