8000 Add the regions conformance group by justinhwang · Pull Request #1288 · uber/h3 · GitHub
[go: up one dir, main page]

Skip to content

Add the regions conformance group - #1288

Draft
justinhwang wants to merge 1 commit into
conformance-3-hierarchyfrom
conformance-4-regions
Draft

justinhwang wants to merge 1 commit into
conformance-3-hierarchyfrom
conformance-4-regions

Conversation

@justinhwang
@justinhwang justinhwang commented Nov 5, 2026 •
Copy link
Copy Markdown
Collaborator

Adds the record file and runner for the region functions.

Part of the conformance suite stack (#1292 → #1285 → #1286 → #1287 → #1288 → #1289 → #1290; #1292 is the macOS runner matrix fix the stack sits on so CI can pass); the specification is dev-docs/conformance.md.

Functions covered

  • polygonToCells, polygonToCellsExperimental in the four containment modes, maxPolygonToCellsSize.
  • cellsToLinkedMultiPolygon of the classic fill, compared by structure and by points under the angular tolerance: each outer loop up to rotation, holes in any order.

Polygons are cell boundaries scaled by 0.8 and 1.2 about the center, with and without a hole, so that no cell vertex lies on a polygon edge (the full and overlapping modes are not defined on that knife edge), plus a fill at resolution 16 for the error case.

Files

File Rows
regions/polygons.jsonl 360
regions/curated.jsonl 22

The curated file holds the polygon fixtures of the existing tests, the hemispheres and the CLI polygons. Runner: testConformanceRegions.

The committed files are byte-identical to the ones generated in h3-go from v4.5.0 at seed 20260929.

🤖 Generated with Claude Code


Stack created with GitHub Stacks CLI • Give Feedback 💬

@coderabbitai
coderabbitai Bot commented Nov 5, 2026
Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

@coveralls
coveralls commented Nov 5, 2026 •
Copy link
Copy Markdown

Coverage Status

Coverage is 99.758% — conformance-4-regions into conformance-3-hierarchy. No base build found for conformance-3-hierarchy.

@justinhwang
justinhwang force-pushed the conformance-4-regions branch 2 times, most recently from e90fa21 to 6048cca Compare November 5, 2026 22:17
Adds the record files and runner for polygonToCells,
polygonToCellsExperimental in the four containment modes and
cellsToLinkedMultiPolygon of the classic fill. Polygons are cell boundaries
scaled by 0.8 and 1.2 about the center, with and without a hole, so that
no cell vertex lies on a polygon edge, plus a fill at resolution 16 for
the error case. The multipolygon is compared by structure and by points
under the angular tolerance, each outer loop up to rotation and holes in
any order. The curated file holds the polygon fixtures of the existing
tests, the hemispheres and the CLI polygons.

The files are the generator's output and are byte-identical to the ones
generated in h3-go from v4.5.0 at seed 20260929.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@justinhwang
justinhwang removed this pull request from stack #1291 November 5, 2026 22:38
@justinhwang
justinhwang force-pushed the conformance-4-regions branch from 6048cca to 70d41cc Compare November 5, 2026 22:38
@justinhwang
justinhwang added this pull request to stack #1295 November 5, 2026 22:38

This branch has not been deployed

No deployments
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.

2 participants

0