pgstac icon indicating copy to clipboard operation
pgstac copied to clipboard

How to have a Collection of Collections?

Open randyberos opened this issue 1 year ago • 4 comments

Is it possible to have a collection of collections?

We have a static STAC catalog with a structure similar to below. We would like to migrate this type of structure to PySTAC. I observed that the collections table of pystac does not have a collections column of its own. Is it possible to have a collection that is directly under another collection in PySTAC?

  • Catalog
    • Collection 1
      • Collection 1.a
        • Item
      • Collection 1.b
        • Item
    • Collection 2

randyberos avatar Aug 29 '23 08:08 randyberos

This is currently not possible in pgstac.

bitner avatar Sep 06 '23 21:09 bitner

Hey we are also interested in that feature. Do you have an estimate when it'll be available ?

nleconte-csgroup avatar Dec 11 '23 14:12 nleconte-csgroup

This is not on the road map right now. I am happy to review any ideas or PRs that implement this. Otherwise, if you have money to fund this we can talk on how we can help you out at Development Seed.

bitner avatar Dec 11 '23 14:12 bitner

@bitner My understanding is that the link object in a collection is not stored when creating a collection, and that the appropriate link such as self, parent are generated when returning json. Would a reasonable starting point be to add a foreign key relation between collections? Are there any immediate pitfalls you see with this?

underchemist avatar Feb 20 '24 23:02 underchemist