Repository navigation
fix(models): keep a storm-report Point at (0, 0) (#59) - #60
Merged
Merged
Conversation
parse_storm_reports used a (0, 0) location as its signal that the Point was missing, so a Point at exactly (0, 0) was replaced by the property lon/lat. Track whether the Point was read instead. Fixes #59
[Medium impact] This PR appears safe to merge.
|
2 tasks done
Reddimus
added a commit
that referenced
this pull request
Nov 23, 2026
## Summary Prepares `v0.4.11`, a patch release with one fix: - `parse_storm_reports` keeps a Point at exactly `(0, 0)` instead of replacing it with the property `lon`/`lat` (#59, #60). Changes, following the steps in CONTRIBUTING.md: - `include/spc/version.hpp`: `SPC_VERSION_PATCH` 10 → 11 - `CHANGELOG.md`: the `[Unreleased]` entries are now under `[0.4.11] - 2026-11-23` - `README.md`: `GIT_TAG v0.4.11` (`find_package(spc 0.4 REQUIRED)` stays the same) ## Testing - [x] `make test` (210/210), `make lint`, `make lint-md`, `make fixtures-check` - [x] `make test-consumers` (`consumer checks passed (v0.4.11, find_package(spc 0.4))`) After this merges, `main` gets tagged `v0.4.11`, which runs `release.yml`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
parse_storm_reportstook a(0, 0)location to mean the Point was missing (LonLatdefaults to(0, 0)). So a Point at exactly(0, 0)was replaced by thelon/latin the properties. Ahas_pointflag now records whether the Point's coordinates were read, and the properties are used only when they weren't. #57 fixed the same 0-as-absent bug formagfandLABEL; this is the case it missed.Nothing else changes: a missing, null, or non-numeric Point still falls back to the property
lon/lat, and the golden IEM fixture (624 reports, none at(0, 0)) gives the same output.Testing
Parser.StormReportPointAtOriginIsKept. It failed before the fix (feature 0 came back as(-97.5, 37.7)) and passes after it.make test(210/210, golden and parity unchanged),make lint,make lint-md,make fixtures-check,make test-consumersFixes #59