Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove checking against crs valid extent #1076

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Conversation

alexgleith
Copy link
Contributor

@alexgleith alexgleith commented Oct 9, 2024

Some code here was doing a similar thing to what we fixed in datacube-core here: opendatacube/datacube-core#1635


📚 Documentation preview 📚: https://datacube-ows--1076.org.readthedocs.build/en/1076/

Comment on lines +171 to +173
if base_extent is None:
click.echo(f"Layer {layer.name} has no extent in CRS {base_crs}. Skipping.")
return
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure this is a good idea, probably needs testing. Empty products were failing in update ranges though.

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.33%. Comparing base (2e8a663) to head (c09e8c5).
Report is 1 commits behind head on develop-1.9.

Files with missing lines Patch % Lines
datacube_ows/index/postgis/product_ranges.py 60.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##           develop-1.9    #1076      +/-   ##
===============================================
+ Coverage        93.28%   93.33%   +0.05%     
===============================================
  Files               53       53              
  Lines             7039     7032       -7     
===============================================
- Hits              6566     6563       -3     
+ Misses             473      469       -4     
Files with missing lines Coverage Δ
datacube_ows/index/postgis/product_ranges.py 94.73% <60.00%> (+3.56%) ⬆️

projbbox = starting_box.to_crs(crs).boundingbox
result[crsid] = sanitise_bbox(projbbox)
projbbox = starting_box.to_crs(crs).boundingbox
result[crsid] = sanitise_bbox(projbbox)
Copy link
Contributor

Choose a reason for hiding this comment

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

I can see issues with this, but with the way WMS is defined I'm not sure we can do better.

@alexgleith alexgleith merged commit 6ee46d1 into develop-1.9 Oct 9, 2024
9 checks passed
@alexgleith alexgleith deleted the fix-issues-new-db branch October 9, 2024 07:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants