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

Feature/update Collection extent from Items #168

Merged
merged 3 commits into from
Aug 20, 2020

Conversation

gwnoseworthy
Copy link

Add method to update collection extent object.

creates SpatialExtent based on bbox of items
creates Temporal Extent based on datetime + props.start_datetime, props.end_datetime

Impliments #145

gnoseworthy added 2 commits August 20, 2020 14:07
Copy link
Member

@lossyrob lossyrob left a comment

Choose a reason for hiding this comment

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

Looking great.

Two small changes, otherwise this is good to go:

  • Can you name the PR with a more descriptive name?
  • Can you add a CHANGELOG.md item? It would go in the same place as the commit here, including a link to this PR. I'll wait to merge that PR until after this to avoid conflicts.

Thanks!

@@ -202,6 +202,37 @@ def from_dict(cls, d, href=None, root=None):

return collection

def update_extent_from_items(self):
Copy link
Member

Choose a reason for hiding this comment

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

Nice concise implementation 💯

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, I have updated the changelog as well.

@gwnoseworthy gwnoseworthy changed the title Feature/collect extent Feature/update Collection extent from Items Aug 20, 2020
@lossyrob
Copy link
Member

👍

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.

2 participants