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

Refactor Bbox, Remove Public/Private Stac Collection, and Fix 2.11 builds #180

Merged

Conversation

notthatbreezy
Copy link

@notthatbreezy notthatbreezy commented Nov 12, 2019

Overview

This refactors Bbox to be a sealed trait, re-enables both 2d and 3d bounding boxes in tests, fixes the 2.11 builds, and also removes the distinction between public/private collections since that original split was based on my misreading of the specification.

Checklist

  • Description of PR is in an appropriate section of the CHANGELOG and grouped with similar changes if possible

Testing Instructions

  • Run tests

Closes #177

Christopher Brown added 2 commits November 11, 2019 15:26
This was based on a misreading of the spec, turns out that the
proprietary license does not require a license link and links _SHOULD_
only include one, not must.
Copy link
Contributor

@jisantuc jisantuc left a comment

Choose a reason for hiding this comment

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

I think the bbox gens needs some sanitization -- running into a lot of

[info] - items should round trip *** FAILED ***
[info]   ExtentRangeError was thrown during property evaluation.
[info]     Message: Invalid Extent: ymin must be less than ymax (ymin=1.6305147092067003E-259, ymax=-1.3165357861436286E104)
[info]     Occurred when passed generated values (
[info]   
[info]     )

errors in tests

Otherwise good to go 👌

@notthatbreezy
Copy link
Author

Oh oops, I didn't run tests after adding the extent part -- I'll fix that up.

Copy link
Contributor

@jisantuc jisantuc left a comment

Choose a reason for hiding this comment

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

🏎️

The Extent constructor throws an exception, in order to handle that
`toExtent` returns an `Either[Throwable, Extent]` now
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.

Fix Scala 2.11 compilation for stac subproject
2 participants