GTC-3276 Change calculation of extent metadata using wgs84Extent #689
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.
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.