#80: Finland's top place names no longer shout, and same-place duplicates collapse #90
No reviewers
Labels
No labels
blocked
claude-wip
map-report
map:is
map:se
needs-review
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
art/ismap!90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-80-place-casing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #80
#80 — Finland's place names: casing + spatial dedupe
Finland's top-tier place names were all-caps on the map (FORSSA, HANKO,
HEINOLA, HELSINKI at z5), and the same place could appear twice at
near-but-not-identical anchor points — HELSINKI at importance 3 beside a cased
Helsinki at importance 2.
What changed
Both in
conf/fimap.yaml'splacesquery:capitals; all-caps rows are
initcap-ed (HELSINKI → Helsinki,MÄNTTÄ-VILPPULA → Mänttä-Vilppula,S:T MICHEL → S:t Michel). Cased rowspass through untouched so an already-cased register row is never re-cased.
ST_ClusterDBSCANateps 600 partitioned by the normalized name, one row per
(name, cluster).eps 600 was measured against the live register (R79): same-place duplicate
anchors sit at 13–600 units, and at 60°N a 3857 unit is ~0.5 m on the
ground, so 600 units ≈ 300 m — the "few hundred metres" of the acceptance.
Distinct same-name settlements (two places called Helsinki 230 km apart,
hundreds of Koivula hamlets) stay split.
DISTINCT ONthe pointwith Finnish preferred still collapses VAASA/VASA and
HELSINKI/HELSINGFORS at identical coordinates — the casing fix does not
undo the language fix.
Rows: 394 636 register rows → 269 826 points coordinate-exactly → 267 812
after the spatial dedupe. The z5 top-4 is the same order, just cased; the
per-zoom
rank <= Nbudgets are unchanged (R83).Verification (live DB,
importer/importer -layer places conf/fimap.yaml)count(*) WHERE country='fi' AND name=upper(name) AND length(name)>3→ 0 (was 308).map_places_14for fi→ 0 pairs.
z4–z12, full register at z13+.
untouched (se 203830, pl 101334, is 44533).
no caps,
rankabsent (mvt_exclude intact).Forssa/Hanko/Heinola/Helsinki; Vaasa renders without a Vasa twin; the
archipelago "Helsinki" hamlet still renders its own label (positive control
for R90).
make buildandgo test ./...pass in importer/ and mapsrv/.Notes
docs/country-finland.mdupdated; the eps rationale is in the configcomment next to the query (the review surface).
name=upper(name)rows are codes (M-804, 1930, G. G., M. A.),not the caps problem; untouched.
accepted design; this issue was the casing and the duplicate.