Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item in multiple collections #1273

Closed
mhogeweg opened this issue Mar 12, 2024 · 4 comments · Fixed by #1296
Closed

item in multiple collections #1273

mhogeweg opened this issue Mar 12, 2024 · 4 comments · Fixed by #1296
Assignees
Milestone

Comments

@mhogeweg
Copy link

what would one do if an item belongs to multiple collections in a STAC? the collection field in the item spec is a string. if an item belongs to multiple collections would it be indicated in a list? or comma-separated string? and then what would one do with the rel:collection link? multiple instances? or one instance for one of the collections the item is in and then have alternates for the other collection memberships?

@emmanuelmathot
Copy link
Collaborator

This "issue" has already been discussed in the past here.
TLDR; You can have a single collection per item then. You can also have multiple collections pointing to an item, but a item can only point back to a single collection, which the item is "inheriting" from.

Other discussions about multiple parents are ongoing:

@m-mohr
Copy link
Collaborator

m-mohr commented May 16, 2024

Somewhat related (hierarchical collections): opengeospatial/ogcapi-common#298 (comment) So something we should review.

@m-mohr
Copy link
Collaborator

m-mohr commented Jun 28, 2024

The work that OGC is doing is purely relevant to APIs, we don't need to consider it in the static version of STAC.

The question has also been answered and the OP did not respond yet, so we assume that this issue has been clarified sufficiently. I'll issue a small PR to clarify the issue in the spec.

@m-mohr m-mohr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2024
@m-mohr m-mohr reopened this Jun 28, 2024
m-mohr added a commit that referenced this issue Jun 28, 2024
@mhogeweg
Copy link
Author

For me the issue may be closed. In our back-end we can handle an item being part of multiple collections (like views on a table). But when looking at an item from the view of a collection, it is just part (or not) of that one collection.

@m-mohr m-mohr self-assigned this Jun 28, 2024
m-mohr added a commit that referenced this issue Jun 29, 2024
… a single collection (#1296)

* Clarified that multiple collections can point to an Item, but an Item can only point back to a single collection. #1273
@m-mohr m-mohr closed this as completed Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants