Skip to content

fix(home): replace jagged/overlapping barangay boundaries - #15

Merged
hmcldryl merged 1 commit into
mainfrom
fix/barangay-boundary-quality
Aug 8, 2026
Merged

fix(home): replace jagged/overlapping barangay boundaries#15
hmcldryl merged 1 commit into
mainfrom
fix/barangay-boundary-quality

Conversation

@hmcldryl

@hmcldryl hmcldryl commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Old boundary source (bendlikeabamboo/barangay-boundaries-repository) is Douglas-Peucker simplified per-feature at flat 0.005° tolerance, independently per polygon — doesn't preserve shared edges, hence the jaggedness and overlaps/gaps at barangay borders.

Swapped to faeldon/philippines-json-maps' per-municipality hires extract (MIT), simplified with mapshaper over a merged topology — shared borders stay identical by construction. 26-619 vertices per barangay (was 5-16), 135KB total (was 8.6KB).

No code changes — same FeatureCollection shape, just better source data. Verified visually in dev.

🤖 Generated with Claude Code

…gy-preserving source

The previous data/aborlan-barangay-boundaries.json came from
bendlikeabamboo/barangay-boundaries-repository, filtered from its
national barangays.geojson. That whole dataset — raw, enriched, and
the final curated hierarchical output alike — is Douglas-Peucker
simplified per-feature at a flat 0.005 degree tolerance (per its own
README). Independent per-polygon simplification doesn't preserve
shared edges between neighbors, so adjacent barangays' borders drift
apart differently: hence the jaggedness (5-16 vertices per barangay)
and the overlaps/gaps at shared edges.

Swapped to faeldon/philippines-json-maps' per-municipality hires
extract (2023/geojson/municities/hires, PSGC 1705301000, MIT
licensed), simplified with mapshaper -simplify over a merged topology
— shared borders between neighboring barangays stay identical by
construction, so no overlaps. 26-619 vertices per barangay (vs. 5-16
before), 135KB total (vs. 8.6KB) for still-tiny page weight.

Names normalized to data/barangays.json's verified PSA spellings, same
as before. No AborlanMap.tsx changes needed — same FeatureCollection
shape ({name, pcode} properties, Polygon/MultiPolygon geometry).
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
betteraborlan Ignored Ignored Aug 8, 2026 9:26am

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

@hmcldryl
hmcldryl merged commit 2adcc5d into main Aug 8, 2026
4 checks passed
@hmcldryl
hmcldryl deleted the fix/barangay-boundary-quality branch August 8, 2026 09:27
@hmcldryl

hmcldryl commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 1.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant