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 GeoJSON and All-Products download options #298

Merged
merged 3 commits into from
Jul 9, 2021

Conversation

jeremyh
Copy link
Collaborator

@jeremyh jeremyh commented Jul 9, 2021

Yaml downloads

Add paths to download all products/metadata-types as a single yaml file:

  • All Product definitions: http://explorer.example/products.odc-product.yaml
  • All Metadata Type definitions: http://explorer.example/metadata-types.odc-type.yaml

So people can, for example, clone remote datacube config in two commands:

datacube type add http://explorer.test/metadata-types.odc-type.yaml
datacube product add http://explorer.test/products.odc-product.yaml

GeoJSON downloads

Add links in the sidebar to download the displayed product extents as GeoJSON files:

Screenshot from 2021-07-09 11-31-35
(People have asked for these on Slack, as well as for DEA's product coverage as a shape)

@codecov
Copy link

codecov bot commented Jul 9, 2021

Codecov Report

Merging #298 (3055b5c) into develop (1156364) will increase coverage by 0.05%.
The diff coverage is 96.42%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #298      +/-   ##
===========================================
+ Coverage    86.74%   86.80%   +0.05%     
===========================================
  Files           24       24              
  Lines         2958     2978      +20     
===========================================
+ Hits          2566     2585      +19     
- Misses         392      393       +1     
Impacted Files Coverage Δ
cubedash/_utils.py 85.51% <92.85%> (+0.05%) ⬆️
cubedash/_api.py 97.36% <100.00%> (+0.30%) ⬆️
cubedash/_product.py 94.05% <100.00%> (+0.37%) ⬆️
cubedash/warmup.py 64.56% <100.00%> (+0.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1156364...3055b5c. Read the comment docs.

@jeremyh jeremyh marked this pull request as ready for review July 9, 2021 03:44
@jeremyh jeremyh requested review from alexgleith and uchchwhash July 9, 2021 03:47
Copy link
Contributor

@alexgleith alexgleith left a comment

Choose a reason for hiding this comment

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

I like it!

@jeremyh jeremyh merged commit 76be7e0 into opendatacube:develop Jul 9, 2021
@jeremyh jeremyh deleted the api-links branch July 9, 2021 04:02
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