Add `ItemCollection.to_collection`
gadomski opened this issue · comments
This would be a nice convenience method that would generate the extents, etc from the items in the ItemCollection
.
I think of ItemCollection
s as more analogous to Catalog
s than to Collection
s. 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?
Yeah, I agree with the general point that not all ItemCollection
s 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?