Iceland's places ranks the toponym register, not settlements — and settlement_points double-labels the map #78
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#78
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 auditing every country against the new
docs/country-requirements.md(#77). Violates R85 (the capital must be the last name standing), R86 (placesholds settlements, not the whole toponym register) and R91 (one label anchor per real-world feature).What the data says
Iceland's five highest-ranked places:
ÍslandKolbeinseySundhnúkur1000 manna hellirABC GarðurinnReykjavík is not in the top six and does not appear at z7 at all. At z5 the map's only place label is
Ísland.Why
conf/ismap.yaml'splacesreads the wholeornefni_punktarregister and grades it byornefnaflokkurkenni, which is a category code — land / sea / water / ice — not a size signal. The distribution is 44,530 names at importance 1, two at 2, one at 3. With nothing to break ties,ROW_NUMBER() OVER (ORDER BY importance DESC, ornefnaflokkurkenni, name)falls straight to alphabetical, which is why a cave outranks the capital.The config comment already notices the symptom without recognising it: "Ísland is rank 1, so it is always present once a zoom has any budget at all."
Why nobody noticed
Iceland is still served the legacy
settlement_pointslayer through theistile source.html/style.jsondraws bothplace_labels(sourceis, source-layersettlement_points, minzoom 4) andplace_names(sourcemap, source-layerplaces, minzoom 4), and both are populated. The real town names come from the legacy layer, which masks the broken one — and means every Icelandic settlement is currently labelled twice.The fix, in one piece
These are one job, not two.
settlements/settlement_pointsare what actually knows about Icelandic settlements (built-up polygons frommannvirki_flakar, already DBSCAN-clustered per #22).placesshould take its ranking from that footprint — the shape Sweden landed in #29 — andsettlements/settlement_pointsshould then be retired fromconf/ismap.yaml, from theissource list, and from the style, leaving one place-label layer.Watch R88 while doing it: measure the footprint area in a metric CRS, not EPSG:3857.
Acceptance
SELECT name FROM map_places_14 WHERE country='is' ORDER BY rank LIMIT 5returns five Icelandic towns beginning with Reykjavík, andgrep -c place_labels html/style.jsonis 0.Result is in #91 — #91; the review note is the PR description.