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

Add ItemCollection.to_collection #1254

Open
gadomski opened this issue Oct 4, 2023 · 4 comments
Open

Add ItemCollection.to_collection #1254

gadomski opened this issue Oct 4, 2023 · 4 comments

Comments

@gadomski
Copy link
Member

gadomski commented Oct 4, 2023

This would be a nice convenience method that would generate the extents, etc from the items in the ItemCollection.

@jsignell
Copy link
Member

I think of ItemCollections as more analogous to Catalogs than to Collections. I guess I think that because you can represent items from more than one Collection in an ItemCollection. But I guess from pystac's perspective Collections just inherit from Catalogs so maybe it doesn't matter?

@gadomski
Copy link
Member Author

Yeah, I agree with the general point that not all ItemCollections map to a Collection. However, often they do (e.g. a search result), and creating a "sub-collection" (here's a collection that describes my search results) could be of use to some folks?

@jsignell jsignell modified the milestone: 2.0 Nov 17, 2023
@gadomski gadomski added this to the v1.12 milestone Sep 23, 2024
@KeynesYouDigIt
Copy link
Contributor

On paper, this makes sense as interesting and I was thinking of taking it on. However, do we have more bites from users on whether or not this would solve an active problem for them?

@gadomski
Copy link
Member Author

Nope! This would be more of a "if you build it they will come" feature.

I do tend to create issues like this one when I'm using pystac and it's ergonomics don't match my expectations, so that's one user I guess 🙂

@gadomski gadomski removed this from the v1.12 milestone Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants