Repository navigation
Field Package lists keep layers in their own coordinate system - #3540
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| #[cfg(test)] | ||
| { | ||
| test_bases::OWN_SYSTEMS.with(std::cell::Cell::get) | ||
| !test_bases::OLDER_RELEASE.with(std::cell::Cell::get) |
There was a problem hiding this comment.
The test switch is thread-local, so it only covers the thread that calls keep_base. keep_ahead (the read-ahead path behind offline.keepRows) can run the copy on a worker thread, where the switch is off and the copy silently comes out in its own system. The new a_copy_an_older_release_kept_sends_an_unplaced_feature_as_a_whole_map test is safe today only because phone() calls keepRows directly on the test thread. A future test that wants an older release's copy through the read-ahead path would pass for the wrong reason. Suggest a comment on as_an_older_release saying that, or having the read-ahead path look at the switch too. Also, once the release after v0.9.0 ships, this seam and the "on from the release after v0.9.0" wording become dead or stale. Remember to remove them then.
Category: quality
| A system that converts a place to beyond ±180.5° | ||
| longitude or ±90.5° latitude (Web Mercator a billion metres east is 8983°) doesn't fit either: such |
There was a problem hiding this comment.
Line 810 ends after a short orphan fragment, so the paragraph wraps awkwardly. Rejoining it keeps the sentence intact.
| A system that converts a place to beyond ±180.5° | |
| longitude or ±90.5° latitude (Web Mercator a billion metres east is 8983°) doesn't fit either: such | |
| A system that converts a place to beyond ±180.5° longitude or ±90.5° latitude (Web Mercator a billion metres east is 8983°) doesn't fit either: such |
Category: quality
Code reviewI reviewed the four changed files (about 70 changed lines, mostly tests and docs). I found no bugs or security issues. The main logic change is that Bugs
Security
Performance
Quality
AGENTS.md
Twins checked
Already raised by earlier reviews: 0. The prior-review file has no threads. Change sizeCompared with
|
📖 Docs preview
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 |
Refs #2032 (C2f-4b-6)
#2868 taught RustGIS to read version 2 of a Field Package's list of changes, in which each layer's shapes are in its own system. It kept writing version 1, because
docs/maintaining.mdasks that a new saved version be read a release before anything writes it. v0.9.0 (2026-11-30) reads version 2, so this turns writing it on.What changes
writes_own_systems()is on. A package opened on a phone keeps its copy of a layer held in its own system in that system (layers.v2.json). Send Field Package lists that layer's changes in that system (version 2).Tests
test_bases::as_an_older_release()simulates a release up to v0.9.0.a_copy_an_older_release_kept_in_longitude_latitude_still_lists, the former switch-off test: it now checks that the release writes version 2, then that an older release's copy is listed as before.a_copy_an_older_release_kept_sends_an_unplaced_feature_as_a_whole_map.User guide
field-work.md: Send lists a layer held in its own system in that system, so such a feature comes back exactly. Bring Back to a layer now held in another system refuses only for such a feature that the list changes. A new bullet covers version 2 and older releases.data-formats.md: the refusal applies to a list brought back to a layer held in another system.Surfaces: Send Field Package and Bring Back, from the desktop app, the phone, the CLI, Python and the Assistant (
offline.*). All of them go through these functions.Local CI passes apart from the five tests known to fail on this machine (GDAL and fixture-dependent).
Summary by CodeRabbit
Bug Fixes
Documentation