Skip to content

fix(analysis): no gap between masks or zones that share an edge - #3518

Merged
Mavrick-F merged 4 commits into
opengeos:mainfrom
Mavrick-F:fix/clip-mask-seam
Dec 1, 2026
Merged

Mavrick-F merged 4 commits into
opengeos:mainfrom
Mavrick-F:fix/clip-mask-seam

Conversation

@Mavrick-F

@Mavrick-F Mavrick-F commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Clip unioned every mask on its own before use, which rounds each to a grid of its own. An edge two masks share could land on two places a fraction of a millimetre apart, and a feature across it came out in two parts where there is one (#2573; 0.24 mm in the reported case). A point on a mask's corner could be left out the same way.

A valid mask is now only oriented, so its edges stay where they are, as in the other overlay tools for one polygon. One that isn't valid, or has more than KEEP_WHOLE_COORDS coordinates, is unioned as before, so a hole outside its own mask still can't cut a neighbour.

Erase, Intersect, Identity, Union, Symmetrical Difference, Split and Update had the same gap between zones of several parts, which they unioned one by one: of 3,000 random pairs sharing an edge, Erase left a sliver of 644, up to 3.5 mm wide, and of none of one part each. A zone's parts that are valid together now keep their edges too.

Edges shared only in part on a slant still round apart, as before, and so do masks and zones of more than 10,000 coordinates.

Testing

  • The reported case, a second one and the fixture come out in one part, and the fixture's known mark is gone, so the check on pull requests holds it. Unioning every mask again fails four tests, and every zone of several parts another, of 100 of the random pairs.
  • Seeds of 256 generated cases against GEOS: both nightly seeds that hit the gap and two that didn't, all clean. On 12 fresh seeds main hits it in 3 and this in none.
  • Three tests expected what the rounding made, and now expect a point on a corner kept, no sliver from a shared diagonal, and a line snapped to the mask's own edge.
  • The analysis suite, the reference corpus and clippy.

Real layers, release builds, three runs each (Hennepin one): CPU, and what came out

CPU before CPU here Invalid outputs Parts
Oregon blocks by flood zones 54.5–55.0 s 50.7–51.1 s 0 → 0 15,034 → 14,966
Utrecht zoning by property 32.2 s 28.5 s 556 → 396 54,756 → 49,366
Utrecht property by neighbourhoods 10.0–10.2 s 10.2–10.8 s 43 → 41 44,526 → 44,337
Hennepin parcels by flood zones 535 s 499 s 16 → 7 453,451 → 452,764

On Utrecht's property by neighbourhoods, Union takes 20.7 s of CPU for 19.3 s (the check of the neighbourhoods), Erase 22.8 s for 24.1 s, Intersect and Identity the same; on Oregon's blocks by flood zones, Erase takes 228 s for 234 s. Their areas are the same, but for Union's, by 0.2 m² in 41,546 km².

Peak memory is level or lower for Clip, and within 5% for the others. Areas differ by more than a millionth and 1e-3 m² in 34 of Oregon's 14,784 features, where the error against GEOS falls from 75.6 to 59.9 m² in total, in none of Utrecht's property and in one of Hennepin's 448,126. Utrecht's zoning has three fewer features, slivers that only the rounding made.

The desktop, the browser, the command line, Python, the Assistant and MCP, and the phone run the same tool. No command, parameter or saved file changes.

  • The fork's full Linux gate passed on this commit: run.

UI evidence

No visible UI change.

Related issue

Fixes #2573.

Summary by CodeRabbit

  • Bug Fixes
    • Clip and erase operations now handle shared boundaries more consistently, including exact edge contact and narrow areas with positive coverage.
    • Valid masks and multipart overlay zones better preserve their original edges; invalid shapes continue to be combined for processing.
    • Clip results handle point and multipoint geometries more consistently with unmerged masks.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Clip and overlay-zone mask preparation now preserves valid polygon edges and unions masks that fail validity checks. Updated tests cover point and multipoint results, shared edges, and sliver cases. The seam regression fixture no longer includes its known description.

Changes: Mask edge preservation

Layer / File(s) Summary
Mask preparation
crates/analysis/src/tools.rs
Clip and overlay zones preserve valid mask edges. Invalid masks are unioned. Worker scratch sizing includes estimated validity-check memory.
Regression expectations and cases
crates/analysis/src/tools.rs, crates/analysis/tests/reference/overlay-regressions/clip-mask-seam.json
Point and multipoint expectations use unmerged masks. Tests cover shared edges and slivers. The fixture’s known description was removed.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

  • opengeos/RustGIS#2386: Adds seeded GEOS comparisons and a Clip fixture for gaps between rounded masks.
  • opengeos/RustGIS#2880: Changes how Clip selects and prepares masks based on their relation to the feature.

Suggested reviewers: giswqs, pick2510

Merge Risk: Minimal · up to 1ea4b

Clip and overlay-zone masks now keep their edges when valid, which should remove seam gaps. No actionable merge-blocking risk was found.

Pre-merge checks: Passed 2 · Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive [#2573] The PR summary says valid Clip masks are only oriented, so shared edges keep their coordinates. This addresses the rounding cause in the issue. The code cannot be verified. The diff of crates/… Provide readable evidence of the tools.rs change, or run the reported case from #2573 through the overlay replay command in crates/analysis/tests/reference/README.md at the reviewed head. Confirm that clip returns one polygon part, matching…
Out of Scope Changes check Inconclusive The PR changes are described as limited to Clip mask handling in crates/analysis/src/tools.rs, its tests, and the fixture clip-mask-seam.json, which drops the known mark. The PR description states tha… Confirm from the tools.rs diff whether the multipart zone change for Erase and Update is intended in this PR. If it is, update the PR description to state it. If it is not, remove it or move it to a separate PR. Confirm that the validity-ch…
Passed Passed checks: 2 passed

Check name Status Explanation
Title check Passed The title names the main change: masks or zones that share an edge no longer leave a gap after clipping. It matches the changeset, which orients valid masks instead of unioning them, and the linked is…
Description check Passed The description covers the required sections of the template. The Summary explains the cause (separately rounded masks leave gaps that split features or drop corner points), the fix (valid masks are o…
Full details: Title check

Explanation

The title names the main change: masks or zones that share an edge no longer leave a gap after clipping. It matches the changeset, which orients valid masks instead of unioning them, and the linked issue #2573. The title uses the fix(analysis) scope and stays under one line, which is concise.

Full details: Description check

Explanation

The description covers the required sections of the template. The Summary explains the cause (separately rounded masks leave gaps that split features or drop corner points), the fix (valid masks are oriented, not unioned; invalid or large masks are still unioned), and the affected tools. The Testing section lists the new and updated tests, GEOS comparisons, fixture changes, and real-layer benchmarks. The UI evidence section states 'No visible UI change.' as the template requires. The Related issue section says 'Fixes #2573.' The description is detailed and specific, so it is mostly complete.

Full details: Linked Issues check

Explanation

[#2573] The PR summary says valid Clip masks are only oriented, so shared edges keep their coordinates. This addresses the rounding cause in the issue. The code cannot be verified. The diff of crates/analysis/src/tools.rs could not be read, because its changed blobs are missing from the checkout. The fixture at head, clip-mask-seam.json, has seed 13714318419105429329 and index 614. The issue reports seed 17168304779510644327 and index 94, with different case geometry. So the fixture does not show the reported case. The claim that the reported case now yields one part comes only from the PR description. The GEOS comparisons and test runs were not re-executed.

Resolution

Provide readable evidence of the tools.rs change, or run the reported case from #2573 through the overlay replay command in crates/analysis/tests/reference/README.md at the reviewed head. Confirm that clip returns one polygon part, matching GEOS, for seed 17168304779510644327, index 94.

Full details: Out of Scope Changes check

Explanation

The PR changes are described as limited to Clip mask handling in crates/analysis/src/tools.rs, its tests, and the fixture clip-mask-seam.json, which drops the known mark. The PR description states that Erase and Update zones with several parts are unchanged. The AI summary of the whole diff says overlay zones with multiple polygons now preserve their edges when valid, and it adds validity-checking memory estimates. Those Erase and Update changes are not described in the PR description. They may share the same seam cause and may be in scope. The tools.rs diff could not be read, so this cannot be decided.

Resolution

Confirm from the tools.rs diff whether the multipart zone change for Erase and Update is intended in this PR. If it is, update the PR description to state it. If it is not, remove it or move it to a separate PR. Confirm that the validity-checking memory estimate is needed for the Clip fix.

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.

Share

A rabbit checks each polygon seam,
Valid edges stay crisp and clean.
Shared borders meet without a gap,
Slivers find their measured map.
The mask goes whole or unions through,
Then hops along to 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: 9250e179-0f56-46a6-88d9-126e9d3a37a4
Commits

Reviewing files that changed from the base of the PR and between 2e2e080 and 1ea4b68.

Files selected for processing: 1

  • crates/analysis/src/tools.rs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

Comment thread crates/analysis/src/tools.rs Outdated
// even one polygon: collapsed rings have no filled area. Keep the original bounds too:
// rounding an edge must not hide a line the boolean overlay clips to it.
let valid = geo::CoordsIter::coords_count(&m) <= KEEP_WHOLE_COORDS
&& crate::validity::check(Some(&in_plane(&m)), crate::validity::MAX_WORK).problems.is_empty();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check runs in the mask phase, inside try_map_on, which sizes its threads from largest_mask.saturating_mul(2) (line 2348). For a mask of up to KEEP_WHOLE_COORDS (10,000) coordinates, in_plane(&m) makes a full copy of its coordinates (about 160 KB at 16 bytes each), and validity::check holds about 100 bytes per coordinate (the doc on KEEP_WHOLE_COORDS, around line 2031), so roughly 1 MB per thread. That transient isn't in the budget this phase is sized from. The feature-level check at line 2482 is sized the same way, so this is the same gap in a second place. Suggest either adding the check's per-coordinate cost to largest_mask for this phase, or lowering the limit used here, and noting the measured peak in the PR (cargo xtask memory).

Category: performance

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 2e2e080: this phase's share for a thread now has the copy in the plane and the check's state, about 116 bytes a coordinate, for a mask up to KEEP_WHOLE_COORDS.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Code review

Scope: crates/analysis/src/tools.rs (Clip mask preparation, the new tests) and the reference fixture clip-mask-seam.json. I read the surrounding code (validity::check, part, mask_of, rest_outside, outside, MaskCache) and checked the change against the AGENTS.md rules. I did not build or run the tests, since I have no shell here.

Prior review threads: none on this PR, so there were no earlier concerns to leave alone.

Bugs

  • Erase and Update can still leave the seam gap with several zones. rest_outside (crates/analysis/src/tools.rs:2794) and outside still union the zones that cut a feature when there are two or more. Two zones that share an edge can therefore still round apart, and a feature along that edge can keep a sliver. The PR changes only Clip. This is the same family the PR fixes, so it is a twin the change missed. Confidence: medium. I did not reproduce it.
  • mask_of takes a single overlay polygon without the validity check that Clip now uses. crates/analysis/src/tools.rs:2597 only orients one polygon, so an invalid zone (for example a hole outside its shell) reaches the overlay raw. The Clip comment says that case must be unioned so a neighbour isn't cut. Either the other overlay tools have the same exposure or the two rules should match. Confidence: low-medium. I did not check how the overlay handles such input.

Security

  • None found.

Performance

  • The new validity check on each mask (tools.rs:2360, inline comment posted, buffered for posting) runs inside a thread phase sized from largest_mask * 2. For masks up to 10,000 coordinates it adds a coordinate copy (in_plane) and about 100 bytes per coordinate of check state, roughly 1 MB per thread. That is not in the budget. Confidence: medium.

Quality

  • The clip_on doc (tools.rs:2314–2326, unchanged lines) still says the masks are unioned. Valid masks are no longer unioned, and the doc doesn't mention the validity check.
  • The test doc at tools.rs:16148 replaced the first line, and the next line ("Count kept features once, across workers…") now describes a different concern. It is pre-existing text, now misplaced.
  • Wording at tools.rs:2355: "it meets its neighbours along those they share" reads awkwardly.

AGENTS.md

  • No violations found. Nothing new is registered as a command, no saved file or schema changes, no layer or wasm change, no timer waits or ignored tests in the new test, and no sizes, notices or cancel points changed. The new test has a fixed expected value.
  • Reach: this is an analysis tool fix, so it applies everywhere analysis::run is used (desktop, CLI, Python, Assistant/MCP, phone). The PR's surface note is correct.

Change size

Compared: the whole PR against main (merge base 21e9aa5 to PR head 1e3fdcf).

Measure Value
Files changed 2 (added 0, modified 2, removed 0, renamed 0)
Size before 1004.4 KB
Size after 1007.5 KB
Total size change +3.1 KB
Path Before After Change
crates/analysis/src/tools.rs 1003.9 KB 1007.0 KB +3.1 KB
crates/analysis/tests/reference/overlay-regressions/clip-mask-seam.json 562 B 517 B -45 B

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-3518/
Web app https://preview.rustgis.app/pr-3518/app/
Commit 1ea4b68

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).

@Mavrick-F

Copy link
Copy Markdown
Member Author

On the Claude review of 1e3fdcf, in 2e2e080: clip_on's comments say the masks are checked first.

  • Erase and Update: a zone of one polygon keeps its edges (mask_of only orients it), and the zones that cut a feature are unioned together on one grid, so corners they share round alike. A zone of several parts is unioned on its own first, as a Clip mask was; no case of a gap there has been found, and it isn't changed here.
  • mask_of doesn't check the one polygon it orients, on purpose: each zone is cut with on its own, and that behaviour isn't changed here either.
  • The misplaced line in the sliver test's comment is left for the release quality pass.

Comment thread crates/analysis/src/tools.rs Outdated
// rounding an edge must not hide a line the boolean overlay clips to it.
let valid = geo::CoordsIter::coords_count(&m) <= KEEP_WHOLE_COORDS
&& crate::validity::check(Some(&in_plane(&m)), crate::validity::MAX_WORK).problems.is_empty();
let mask = if valid { m.orient(Direction::Default) } else { union_all(m.0.iter()) };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clip now keeps a valid multi-part mask as it is, but the other overlay tools still union one. mask_of (line 2599) unions any zone feature with more than one polygon, and Erase, Intersect, Identity, Union, Split and Update all go through it (callers at 2657, 2940, 7376, 8239–8240). So a multi-part zone still gets the rounded edges this PR removes from Clip, and the same input now gives different results in Clip and Intersect. The reason mask_of gives ("parts of one feature may overlap") is what validity::check now rules out through PartsOverlap, so the same gate could apply there. The PR's "as in the other overlay tools" holds only for one polygon. I checked the single-polygon branch and the other mask_of callers. Confidence: medium (about 65%): the gap for multi-part zones in those tools is the same defect this PR fixes for Clip.

Category: bug

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed, and what I said of these tools before was wrong: of 3,000 random pairs of two-part zones that share an edge, Erase left a sliver of 644, up to 3.5 mm wide, and of none of one part each. Fixed in 1ea4b68: zone_of keeps the edges of parts that are valid together. mask_of still unions the polygons of several features that Union's second pass and Tabulate Intersection gather, which touch each other as a rule.

Comment thread crates/analysis/src/tools.rs Outdated
// Each mask is checked, and unioned unless it is valid: Cancel is looked at, and progress counted,
// before each. A thread holds a mask's polygons and their union, and for one small enough to be
// checked, a copy in the plane and about 100 bytes a coordinate ([`KEEP_WHOLE_COORDS`]).
let checked = largest_mask.min(KEEP_WHOLE_COORDS * std::mem::size_of::<Coord>()).saturating_mul(8);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The * 8 is a bare factor. The reply on the earlier thread says about 116 bytes a coordinate (16 for the copy in the plane, about 100 for the check), and * 8 on a 16-byte coordinate gives 128, which covers that. But nothing here says so, and checked names what the sum is used for, not what it measures. Name the factor, or put the per-coordinate figure in the comment above it.

Category: quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Named in 1ea4b68: edges_check_bytes, whose comment has the two figures.

Comment thread crates/analysis/src/tools.rs Outdated

/// [`clip`] on `threads` threads (by the number of items in each step, and the memory each
/// takes, when `None`): the masks are unioned, and each input feature clipped, on their own
/// takes, when `None`): the masks are checked, those that aren't valid unioned, and each input feature clipped, on their own

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc comment for clip_on is hard to read after this change. The first line is about 130 characters, and "the masks are checked, those that aren't valid unioned" is spliced into the middle of a sentence. The same applies to the added text at 2318 ("and what checking one takes"). Reflow the paragraph to the file's usual width.

Category: quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reworded in 1ea4b68.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Code review

Scope: Clip's mask handling in crates/analysis/src/tools.rs. A valid mask (no more than 10,000 coordinates, and validity::check finds no problems) is oriented rather than unioned, so shared edges stay where they are. Invalid or larger masks still take the union. The fixture's known mark is removed.

Bugs

  • Overlay tools still union multi-part zones (medium, about 65%). Clip no longer unions a valid multi-part mask, but mask_of (tools.rs:2599) still unions any zone with more than one polygon. Erase, Intersect, Identity, Union, Split and Update all use it, so the same input gives different results in Clip and Intersect, and the gap remains for those tools. Posted inline.
  • The fix covers only part of the gap (documented, not posted). Masks over KEEP_WHOLE_COORDS (10,000) coordinates, and masks that fail the check, still get the union. The PR body says so, but the title ("no gap between masks that share an edge") does not. Many real boundary layers will exceed 10,000 coordinates.
  • Possible normalization gap (low, about 25%). union_all moves coordinates outside TOO_SMALL..TOO_FAR (crates/data/src/overlay.rs:73-75) before it works on them. The valid path skips that step, and validity::check does not appear to gate magnitude. Plane coordinates are normally ordinary, so this is probably unreachable. It needs confirming, not a fix.

Security

  • None found.

Performance

  • No new concern. The earlier thread on the mask-phase memory budget was answered in 2e2e080, and the checked term in the thread-count sizing covers it. The PR body reports CPU as lower on all four real layers.
  • Left alone: 1 earlier concern. The feature-level check at tools.rs:2482 has the same sizing gap. It is pre-existing, unchanged here, and the author answered only the mask phase.

Quality

  • Magic factor * 8 and the name checked at tools.rs:2346. Posted inline.
  • The clip_on doc comment is hard to read after the edit, at tools.rs:2315. Posted inline.
  • Nit: the new test's doc is two sentences that describe different tests. Not posted.

AGENTS.md

  • No rule break found. The new panic! and unwrap sit in test code. No timer waits, and no assert_eq! with identical sides. The change touches no command, parameter or saved file, so the command surface and schema are unaffected. The PR body covers the surfaces it reaches.

Change size

Compared with main (merge base 21e9aa5 to PR head 2e2e080). This covers the whole PR, not just the latest push.

Measure Value
Files changed 2 (added 0, modified 2, removed 0, renamed 0)
Size before 1,028,544 B (1004.4 KB)
Size after 1,032,019 B (1007.8 KB)
Total size change +3,475 B (+3.4 KB)
Path Before After Change
crates/analysis/src/tools.rs 1,027,982 B (1003.9 KB) 1,031,502 B (1007.3 KB) +3,520 B (+3.4 KB)
crates/analysis/tests/reference/overlay-regressions/clip-mask-seam.json 562 B 517 B −45 B

@Mavrick-F Mavrick-F changed the title fix(analysis): Clip leaves no gap between masks that share an edge fix(analysis): no gap between masks or zones that share an edge Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Code review

I found no blocking bugs, security issues or AGENTS.md breaks. I could not build or run the tests (no shell here), so everything below comes from reading the diff and the code it calls. I posted no inline comments, because none of the points below is specific enough to a line to justify one.

Bugs

  • Low confidence (about 30%), not posted: MaskCache::union_of (crates/analysis/src/tools.rs:2277) still unions the masks a feature meets. Valid masks are now unioned unrounded, but a feature that meets only one of two masks sharing an edge uses that mask's exact edge. Two neighbouring features could then differ by a sub-millimetre sliver along that edge. This is the same defect class as Generated overlay disagrees with GEOS (clip, gap between rounded clip masks) #2573, now between features rather than between parts of one feature. The diff doesn't introduce it, but the PR's "no gap" claim is wider than what the tests cover. The author could confirm with a two-feature case.

Security

  • None found.

Performance

  • Nothing new. The earlier memory thread (per-thread check cost) was answered in 2e2e080 and the sizing is now bounded by edges_check_bytes and KEEP_WHOLE_COORDS. I checked the arithmetic: 10,000 coordinates × about 116 bytes is about 1.16 MB, and the * 8 on 16-byte coordinates gives 128 bytes each, which covers it.

Quality

  • Twins checked. Clip and every overlay_zones_on caller (Erase, Intersect, Identity, Union, Symmetrical Difference, Update, Split) now use zone_of/keeps_its_edges. mask_of still unions at:
    • tools.rs:2957 (Union's second-pass cover of input features). The union is one call, so its edges are consistent with each other; the zone itself isn't rounded.
    • tools.rs:7393 (Tabulate Intersection). Each zone group is unioned separately, so two adjacent groups can keep a sub-millimetre gap. The effect is a tiny area tally error, not lost features. I think this is acceptable, but the PR should say so explicitly, since the description treats "Tabulate Intersection" as covered by the rule.
    • tools.rs:8256-8257 (shared_point). Only a point finder, so no output effect.
    • rest_outside (tools.rs:2813) is unchanged, and its multi-zone union is one call.
  • Test fixture change. Removing known from clip-mask-seam.json is consistent with reference.rs:331 and overlay.py. MASK_SEAM in overlay.py is still used only for classifying new findings, so nothing re-adds the mark.
  • Degenerate rings. validity.rs:1160 flags collinear collapsed rings ("runs back over itself"), so a degenerate mask still goes to the union path and keeps the NoArea count.
  • Test expectation. The expectation at tools.rs:14838 uses the unoriented mask while the tool orients it. sq is counter-clockwise, so the two agree here and the test is valid. Not worth a comment.
  • Prior threads. Four earlier threads are all outdated. Three were answered and fixed (memory budget, edges_check_bytes naming, and the zone_of twin). I left them alone. The doc-width concern on clip_on (tools.rs:2315) is still present; it is a quality point, so it can wait for the release quality pass.

AGENTS.md

  • No unwrap, expect or panic in non-test code; the added test code uses panic!/unwrap only in #[cfg(test)].
  • No new silent loss: the notices (Clip: N features kept, NoArea/NoPolygon counts) are unchanged.
  • No command, parameter, saved-file or schema change, so command-surface.txt and schema/ don't need updating.
  • Overlay work still runs through overlay_zones_on and try_map_on with Cancel and progress, and the thread count comes from threads_for_scratch.

Earlier concerns left alone: 4 (all in the existing threads).

Change size

Compared with the base branch: the whole PR, main (21e9aa5) to PR head (1ea4b68).

Measure Value
Files changed 2 (0 added, 2 modified, 0 removed, 0 renamed)
Size before 1004.4 KB
Size after 1010.4 KB
Total size change +5.9 KB
Path Before After Change
crates/analysis/src/tools.rs 1003.9 KB 1009.9 KB +6.0 KB
crates/analysis/tests/reference/overlay-regressions/clip-mask-seam.json 562 B 517 B −45 B

@Mavrick-F
Mavrick-F added this pull request to the merge queue Dec 1, 2026
Merged via the queue into opengeos:main with commit 30c474d Dec 1, 2026
31 checks passed
@Mavrick-F
Mavrick-F deleted the fix/clip-mask-seam branch December 1, 2026 08:07
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.

Generated overlay disagrees with GEOS (clip, gap between rounded clip masks)

1 participant