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

Ignore assets that don't have a type, if filtering by mimetype #71

Merged
merged 2 commits into from
Aug 30, 2021

Conversation

gjoseph92
Copy link
Owner

Closes #70

@TomAugspurger we could certainly add inference in the future, but for now I didn't want to add the complexity. Stackstac requires plenty of other metadata that goes beyond the basic STAC required fields (geolocation / the proj extension, etc.), so I feel okay about requiring this too in the case where you're specifying assets by mimetype.

I'm expecting this is a rare case, so encouraging users to explicitly specify asset IDs in this case feels okay instead of automatically doing something we can't be sure is correct. We can reconsider depending on how often it comes up.

cc @scottyhq

@gjoseph92 gjoseph92 merged commit d751f2f into main Aug 30, 2021
@gjoseph92 gjoseph92 deleted the missing-asset-type branch August 30, 2021 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError for valid Stac Items that don't have a 'type' field
2 participants