You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! First thanks for this wonderful library, it's been super helpful
I might be misunderstanding, but I think there is an issue with Collections losing their assets when you run .clone() because the attribute is not carried over when constructing a new instance. I saw some discussion about placing asset info in the Collection.extra_fields attribute (ref #293) but my understanding is that Collections now support having assets (e.g., there's a Collection.add_asset)
Alternatively, I would support adding an assets argument to both Item.__init__ and Collection.__init__. I'm not sure why we don't include that as an optional argument already, but it seems like it would be nice to be able to create Items and Collections with assets in a single line.
Hello! First thanks for this wonderful library, it's been super helpful
I might be misunderstanding, but I think there is an issue with Collections losing their assets when you run
.clone()
because the attribute is not carried over when constructing a new instance. I saw some discussion about placing asset info in theCollection.extra_fields
attribute (ref #293) but my understanding is that Collections now support having assets (e.g., there's aCollection.add_asset
)It looks to me like the asset attribute needs to be included in this call,
https://github.com/stac-utils/pystac/blob/main/pystac/collection.py#L556-L568
but was maybe omitted as the STAC spec evolved.
Example,
If this makes sense I'm happy to add a PR with a fix and tests
The text was updated successfully, but these errors were encountered: