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 more info in COGReader.info() #387

Merged
merged 2 commits into from
Apr 19, 2021
Merged

add more info in COGReader.info() #387

merged 2 commits into from
Apr 19, 2021

Conversation

vincentsarago
Copy link
Member

closes #384

This PR does:

  • change Info model config to allow additional informations
  • add width, height, count, overviews and nodata_value in COGReader.info()

@@ -65,7 +65,7 @@ class Info(SpatialInfo):
class Config:
"""Config for model."""

extra = "ignore"
extra = "allow"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width, height, overviews are not set in the model because for mosaic or stac it doesn't really make sense. It's easier to just allow extra value in the model

@vincentsarago vincentsarago merged commit ba95d22 into master Apr 19, 2021
@vincentsarago vincentsarago deleted the AdditionalInfo branch April 19, 2021 10:16
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.

Add width, height, count in Info ?
2 participants