pgstac
pgstac copied to clipboard
How to have a Collection of Collections?
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 1.a
- Collection 2
- Collection 1
This is currently not possible in pgstac.
Hey we are also interested in that feature. Do you have an estimate when it'll be available ?
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 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?