Iceland places: multi-part settlements get one label per part #22

Closed
opened 2026-08-01 19:12:55 +00:00 by art-bot · 1 comment
Collaborator

mannvirki_flakar multipolygons are ST_Dump-split on import (110 source rows → 126
polygons), so a settlement mapped as several polygons gets one label anchor per part and
the town name can render repeated.

There is also a second, related duplication: a large settlement polygon spanning several
tiles gets one centroid label per tile.

The fix template already exists in this repo — airport_points: a small derived layer
with a pg source, SELECT ST_Centroid(ST_Collect(geom)) … GROUP BY nafnfitju over the
polygon table, used for the label while the polygon layer keeps the fill. Applying the same
shape to places fixes both symptoms at once.

docs/geo-primer.md uses this as its worked example of why ST_Dump-on-import is not free
("it just moves the cost somewhere you can see it"), so update that reference if it is
fixed.

`mannvirki_flakar` multipolygons are `ST_Dump`-split on import (110 source rows → 126 polygons), so a settlement mapped as several polygons gets **one label anchor per part** and the town name can render repeated. There is also a second, related duplication: a large settlement polygon spanning several tiles gets one centroid label *per tile*. **The fix template already exists in this repo** — `airport_points`: a small derived layer with a `pg` source, `SELECT ST_Centroid(ST_Collect(geom)) … GROUP BY nafnfitju` over the polygon table, used for the label while the polygon layer keeps the fill. Applying the same shape to `places` fixes both symptoms at once. `docs/geo-primer.md` uses this as its worked example of why `ST_Dump`-on-import is not free ("it just moves the cost somewhere you can see it"), so update that reference if it is fixed.
Owner

Result is in #74 — #74; the review note is the PR description.

Result is in #74 — https://git.blahonga.org/art/ismap/pulls/74; the review note is the PR description.
art closed this issue 2026-08-09 10:04:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
art/ismap#22
No description provided.