Finland: water_bodies bypasses the R94 casing rule — the ten biggest lakes ship in capitals #133
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#133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Found reviewing #130 (issue #113). #113 makes R94 casing "one shared rule" in the
fi_paikannimi_casedstaging pass, read byplaces,railwaysandstations.There is a fifth consumer of the same register that it does not cover.
water_bodies(conf/fimap.yaml) joinsfi_paikannimifor lake and watercoursenames (kohdeluokka 36201/36301) and takes
tekstiraw:Ten all-caps names are on the map today, and they are the biggest lakes in the
country, because size is what earns a label at all:
This is older than #113 — the layer never had the initcap idiom either — but it is
what "one shared rule" has to mean to be true.
The change
Two kohdeluokka in the staging pass's WHERE, and the layer reading
name:Already measured against the live register
The rule needs no extension to handle these — it was run over both series as they
stand:
names via cased twins (
BOTTNISKA VIKEN-> Bottniska viken,SKÄRGÅRDSHAVET->Skärgårdshavet,
HANGON ITÄINEN SELKÄ-> Hangon itäinen selkä), the lakes viathe first-word rule (Saimaa, Päijänne, Pielinen), and
ALA-KEITELE->Ala-Keitele keeps its capital because Keitele is itself a register name — the
hyphen-parts rule doing exactly what it was written for.
Why it is not in #130
It needs a
water_bodiesre-import to verify, and the importer re-fetches the MTKsources first — 5.65 GB for fi_mtk_muut.gpkg, which exceeds the claude user's disk
quota on /stuff. The SQL is verified at source level; the layer is not. Shipping
the acceptance test without the import would have left it red.
Acceptance test to land with it
The presence half is not decoration: absence of all-caps names is also what a
layer whose name join silently broke looks like. Same reason #130's stations test
had to be strengthened.
R94's entry in docs/country-requirements.md already records this gap as the
lesson ("normalize once, in one place, for every series"); this issue closes it.
Resolved by the #130 update — commit
676b753onissue-113-fi-name-casing(PR #130) implements exactly the spec in this issue's body:fi_paikannimi_casedWHERE gains36201, 36301;water_bodiesnow stages onfi_paikannimi_casedand readsp.nameinstead ofp.teksti;Verified against the live DB after the re-import (fetch no-op — the 5.65 GB MTK source was already on disk): 0 of 155 844 water-name rows all-caps, all 25 all-caps names in 36201/36301 come back correct, map_water_bodies_14 fi shows the ten lakes cased with Saimaa named and the row count unchanged (171 646), places/railways/stations untouched, fimap
-acceptance all15/15 andmake acceptancegreen. See the PR comment for the full numbers.