-
Notifications
You must be signed in to change notification settings - Fork 122
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
[BUG] EO extension get_bands on a non-EO asset returns Item bands #404
Comments
It seems like this was the intended behavior of the @lossyrob may have more insight into the original intention. |
Indeed, this is a intended behavior for properties like |
Expected Behavior
When using
EOExtension.ext(asset).bands
on an asset that has no bands, it must returnNone
.Current Behavior
When using
EOExtension.ext(asset).bands
on an asset that has no bands, it may return all Item bands if declared at Item levelIdentified issue
get_bands
method in EOExtension usesPropertiesExtension._get_property
that extends the retrieval to the asset's parent Item.Possible Solution
change the _get_property method with a simpler get in asset properties only.
Steps to Reproduce
Context (Environment)
As defined in https://github.com/stac-extensions/eo/:
The text was updated successfully, but these errors were encountered: