Clean up holes/gaps in sub-national regions (v0.15.0) #29

Merged
kamilkrzywda merged 1 commits from feat/cleanup-regions into master 2026-10-12 16:00:44 +02:00
Owner

Part of #16

Fills the small enclosed holes (unpainted dots) in the sub-national choropleth.

  • scripts/cleanup-regions.mjs (npm cleanup:regions): fills 2,245 tiny enclosed holes (< 500 km², across 498 features — dissolve/Natural-Earth artifacts) and keeps 1 genuine water body (KZ-KZY Kyzylorda/Aral basin, 5,858 km²). Gap-bridging is intentionally left off (it minted new medium holes, so net-negative).
  • Result: public/regions.geo.json 2.49 MB → 2.20 MB; 1,796 regions / all 177 countries unchanged (0 id/name/parent mismatches); islands kept; ~100 km floor holds; idempotent.
  • Map/LLM contract untouched (WorldMap.tsx resolves owner via properties.parent).

Part of #16 (the LLM sub-region-transfer piece remains).

Part of #16 Fills the small enclosed **holes** (unpainted dots) in the sub-national choropleth. - `scripts/cleanup-regions.mjs` (npm `cleanup:regions`): fills **2,245 tiny enclosed holes** (< 500 km², across 498 features — dissolve/Natural-Earth artifacts) and **keeps 1 genuine water body** (`KZ-KZY` Kyzylorda/Aral basin, 5,858 km²). Gap-bridging is intentionally left off (it minted new medium holes, so net-negative). - Result: `public/regions.geo.json` 2.49 MB → **2.20 MB**; **1,796 regions / all 177 countries unchanged** (0 id/name/parent mismatches); islands kept; ~100 km floor holds; idempotent. - Map/LLM contract untouched (`WorldMap.tsx` resolves owner via `properties.parent`). Part of #16 (the LLM sub-region-transfer piece remains).
kamilkrzywda added 1 commit 2026-10-12 15:57:26 +02:00
Clean up holes/gaps in sub-national regions (v0.15.0)
CI / build + unit + e2e (pull_request) Successful in 2m15s
8eedc37e05
Part of #16
kamilkrzywda scheduled this pull request to auto merge when all checks succeed 2026-10-12 16:00:43 +02:00
kamilkrzywda merged commit 97702940cd into master 2026-10-12 16:00:44 +02:00
kamilkrzywda deleted branch feat/cleanup-regions 2026-10-12 16:00:44 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/History#29