HARMONY-1922: Add geometry to STAC item when bbox is defined, but geometry is not #49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Jira Issue ID
HARMONY-1922
Description
the STAC spec requires a geometry if a STAC item has a bbox. This is now enforced by pystac. This change adds the
geometry field by creating a Polygon to match the bbox if there is a bbox, but not a geometry defined for the STAC item.
Local Test Steps
make test
harmony-service-example
service image with this branch and deploy to your local environment. Verify that queries still workPR Acceptance Checklist
Documentation updated (if needed)