Skip to content

Adding ItemCollection to PySTAC #302

@matthewhanson

Description

@matthewhanson

An Item Collection is defined in pystac-api-client, which will be updated to use the Item Collection extension.

The Item Collection is used for API responses which can then be saved as GeoJSON ItemCollections. Having this defined in pystac-api-client makes sense because it's used in the API and is not a core STAC object.

However, I'm thinking of creating some additional libraries that I want to operate either on STAC catalogs OR on a saved FeatureCollection. The ability to open an ItemCollection and iterate through items, retrieve the parent of collection of an item, or even save as a regular catalog would be very helpful.

Basically I want to be able to use PySTAC features to work with STAC objects, including Item Collections, but I don't have a need for an API client library because it wouldn't use anything else in that library, it just wants to use STAC objects. Seems like it would be cleaner to implement this in PySTAC rather than require libraries to include a dependency to the api client to get the ItemCollection implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions