Skip to content

GTC-3276 Change calculation of extent metadata using wgs84Extent #689

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

Merged
merged 2 commits into from
Apr 30, 2025

Conversation

danscales
Copy link
Collaborator

GTC-3276 Change calculation of extent metadata using wgs84Extent

The existing calculation was sometimes changing longitude 180 to -180 and vice versa. 180 and -180 are not equivalent, since a bounding box always takes the shortest direction around, which is different for 180 (or 179.9999) and -180 (or -179.9999).

Change the calculation from using to_4326() on cornerCoordinates (which is in meters) to existing wgs84Extent, which is already exactly in degrees. The resulting feature coordinates match the values from before the switch from using pixetl.

Tested by generating wur_radd_alerts/v20250422, and the zoom-9 files now have data in them, rather than being all empty.

The existing calculation was sometimes changing longitude 180 to -180
and vice versa. 180 and -180 are not equivalent, since a bounding box
always takes the shortest direction around, which is different for 180
(or 179.9999) and -180 (or -179.9999).

Change the calculation using to_4326() on cornerCoordinates (which is in
meters) to existing wgs84Extent, which is already exactly in degrees.
The resulting feature coordinates match the values from before the
switch from using pixetl.
@danscales danscales requested a review from dmannarino April 30, 2025 16:17
@danscales danscales changed the base branch from master to develop April 30, 2025 18:28
@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.59%. Comparing base (808413a) to head (bad4505).
Report is 399 commits behind head on develop.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #689      +/-   ##
===========================================
- Coverage    81.07%   76.59%   -4.48%     
===========================================
  Files          130      143      +13     
  Lines         5876     6700     +824     
===========================================
+ Hits          4764     5132     +368     
- Misses        1112     1568     +456     
Flag Coverage Δ
unittests 76.59% <ø> (-4.48%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danscales danscales merged commit 48467fc into develop Apr 30, 2025
2 checks passed
@danscales danscales deleted the gtc-3276b branch April 30, 2025 22:47
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.

3 participants