You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(engine): GeoJSON reading says a dropped measure (M), alone or on a later vertex - #3419
Adds two cases to the reading-loss tests (crates/engine/tests/integration/never_silent_reading.rs)
for the GeoJSON M gap listed in its coverage inventory. This is
part of the ROADMAP › Correct results (open) item "Lossy sample files … for the readers it doesn't
cover yet".
GeoJSON: a measure: a point [1,2,null,4]. GeoJSON has no XYM, so a measure without a
height is written with a null Z. This keeps M apart from the existing height case.
GeoJSON: a measure on a line's later vertex: [[0,0],[1,1,null,7]], so a measure is found
past the first position.
Both are Classified(DroppedZm, "Z or M"): the lossy file gives exactly one DroppedZm notice and
the clean file none. read_routes.rs picks the cases up, so they're also read linked in place, as
bytes, text, a download and inside a zip. The reader already said this loss, so no reader change
was needed. The inventory's GeoJSON row now lists M as covered.
Reach every surface: this adds tests of the shared GeoJSON reader, which the desktop app,
browser, CLI and Python reach through layer.addData*. The ribbon, shortcuts, Assistant/MCP,
plugins and Undo don't apply: no command, option or saved data changes. No outside code was
followed.
Testing
Run locally on Windows 11 (x64), at ab8a94bd:
cargo fmt --all --check, cargo clippy with -D warnings on the 9 packages cargo xtask changed selects, cargo xtask layers, attribution, rows, schema --check, test-hygiene and pre-commit run --all-files (workspace clippy included): all pass.
cargo test --workspace --no-fail-fast: 10,989 passed, 26 ignored, 2 failed. Both failures
are engine --lib unit tests that this change can't reach (it touches only an integration test
file and a README):
layout_report_text::a_report_measures_each_layout_page_with_its_own_page_number: fails on
Windows with Segoe UI and passes with RUSTGIS_BUILTIN_FONTS=1(#<3417).
never_silent_reading:: and read_routes:: pass with the new cases. To check that the cases test
something, I temporarily marked the M-only case Silent. The test then failed with the expected
"1 feature had Z or M values" notice.
UI evidence
No visible UI change.
Related issue
Part of ROADMAP › Correct results: lossy sample files for the readers the corpus doesn't cover yet.
Updated the GeoJSON coverage information to include measure (M) loss alongside Z loss and unreadable geometry. Members, holes, and attributes remain listed as gaps.
Tests
Added GeoJSON reading-loss cases for measures with null Z values, including cases on later line vertices. These cases check that the reported classification and notice identify Z or M loss.
… a later vertex
Two cases in the reading-loss corpus close the GeoJSON M gap in its
coverage inventory: a point with a measure and no height ([1,2,null,4],
as GeoJSON has no XYM) and a line whose second vertex alone has one.
Both give one DroppedZm notice that the clean file doesn't, and every
read route reads them as the path does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review was skipped as selected files did not have any reviewable changes.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: e76a42f8-e7fc-49a8-a01a-e8d816f54da2
Commits
Reviewing files that changed from the base of the PR and between ab8a94b and 3b8ac93.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The GeoJSON reading-loss tests now cover M values with null Z and M values on later line vertices. The coverage table adds these cases and updates the remaining listed gaps.
Two cases expect a DroppedZm classification and a notice containing “Z or M.” The coverage table now lists M loss alongside Z loss and unreadable geometry. Members/holes and attributes remain gaps.
opengeos/RustGIS#1214: That PR adds the GeoJSON Z/M dropped-value notice. This PR adds tests for two cases of that behavior.
Suggested reviewers:mavrick-f, giswqs
Merge Risk: Minimal · previous review ab8a9
This change only adds reading-loss test coverage for GeoJSON M values and updates the coverage table. It does not change runtime behavior, and it is ready to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: two GeoJSON reading-loss test cases for a dropped measure (M), alone or on a later vertex. It follows the conventional type(scope) format and matches the changeset, wh…
Description check
The description follows the template. It has a Summary that explains the change and why, a Testing section with commands and results, and a UI evidence section that correctly states there is no visibl…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: two GeoJSON reading-loss test cases for a dropped measure (M), alone or on a later vertex. It follows the conventional type(scope) format and matches the changeset, which adds those tests and updates the coverage inventory.
Full details: Description check
Explanation
The description follows the template. It has a Summary that explains the change and why, a Testing section with commands and results, and a UI evidence section that correctly states there is no visible UI change. The Related issue section names a ROADMAP item instead of an issue number, which is acceptable here because the template calls for a reference and the author gives one.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks a point of M, Then checks the line’s next vertex, too. “Z or M,” the notice says, The coverage table marks the loss. The rabbit hops through tests anew.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 2b085327-6606-4b2c-9f5d-c9080aeaeebe
Commits
Reviewing files that changed from the base of the PR and between 25af577 and ab8a94b.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the preview label (once per commit).
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
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
Adds two cases to the reading-loss tests (
crates/engine/tests/integration/never_silent_reading.rs)for the GeoJSON M gap listed in its
coverage inventory. This is
part of the ROADMAP › Correct results (open) item "Lossy sample files … for the readers it doesn't
cover yet".
[1,2,null,4]. GeoJSON has no XYM, so a measure without aheight is written with a null Z. This keeps M apart from the existing height case.
[[0,0],[1,1,null,7]], so a measure is foundpast the first position.
Both are
Classified(DroppedZm, "Z or M"): the lossy file gives exactly oneDroppedZmnotice andthe clean file none.
read_routes.rspicks the cases up, so they're also read linked in place, asbytes, text, a download and inside a zip. The reader already said this loss, so no reader change
was needed. The inventory's GeoJSON row now lists M as covered.
Reach every surface: this adds tests of the shared GeoJSON reader, which the desktop app,
browser, CLI and Python reach through
layer.addData*. The ribbon, shortcuts, Assistant/MCP,plugins and Undo don't apply: no command, option or saved data changes. No outside code was
followed.
Testing
Run locally on Windows 11 (x64), at
ab8a94bd:cargo fmt --all --check,cargo clippywith-D warningson the 9 packagescargo xtask changedselects,cargo xtask layers,attribution,rows,schema --check,test-hygieneandpre-commit run --all-files(workspace clippy included): all pass.cargo test --workspace --no-fail-fast: 10,989 passed, 26 ignored, 2 failed. Both failuresare engine
--libunit tests that this change can't reach (it touches only an integration testfile and a README):
cog_windows_stand_in_the_level_kept_until_their_tiles_arrive: fails under load and passeswhen run alone (Flaky test: cog_windows_stand_in_the_level_kept_until_their_tiles_arrive fails 'no holes' in full local runs #2687).
layout_report_text::a_report_measures_each_layout_page_with_its_own_page_number: fails onWindows with Segoe UI and passes with
RUSTGIS_BUILTIN_FONTS=1(#<3417).never_silent_reading::andread_routes::pass with the new cases. To check that the cases testsomething, I temporarily marked the M-only case
Silent. The test then failed with the expected"1 feature had Z or M values" notice.
UI evidence
No visible UI change.
Related issue
Part of ROADMAP › Correct results: lossy sample files for the readers the corpus doesn't cover yet.
🤖 Generated with Claude Code
Summary by CodeRabbit