conf/gr: the water_bodies layer — the 73 WFD lakes (issue #192) #195
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!195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-192-gr-water-bodies"
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 #192
conf/gr: the water_bodies layer — the 73 WFD lakes (issue #192)
What and why
Greece's partition of the shared
map_water_bodies_<z>tables, from thecatalogue's
water_bodiesrow:gr_lwb_50k_greece, the ΥΠΕΝ WFD lake waterbodies — 73 polygons, every one named in Greek via
wb_name_el(72 distinctnames; ΦΡΑΓΜΑ ΦΑΝΕΡΩΜΕΝΗΣ is a reservoir name carried by two lakes in
different districts).
The catalogue promised "lakes + river systems"; the layer is lakes only, and
the catalogue is corrected to match the geometry. The #171 row said
gr_lwb_50k_greece lakes + gr_rwb_50k_greece river systems, but the riversystems are line features — all 1415 MultiLineStrings, verified in the raw
GeoJSON and against the floods_rev1
gr_rwb_greece_2revlayer too. The sharedcontract declares
geom: polygon, so gr_rwb cannot populate this layer, andbuffering the lines into fake areas would be inventing geometry the source
does not distinguish (R137). The rivers are already on the map:
waterwaysdraws them as centrelines from the same official family (floods_rev1
hntw/hntz, #182), and gr_rwb itself serves that layer as the R92 name join.
So the layer is the 73 lakes, class
lake, and nothing else; docs,downloads.yaml and staging.yaml now say so.
Names as delivered. The source prints ALL CAPS Greek (ΛΙΜΝΗ ΜΕΓΑΛΗ
ΠΡΕΣΠΑ), kept verbatim for the same reason the stations layer (#179) keeps
its names: Greek lowercase carries tonos accents that uppercase loses, so a
case pass needs an accent-restoring dictionary — initcap produces accentless
"Λιμνη Μεγαλη Πρεσπα" — and the register-based casing pass Finland uses (R94)
does not exist for Greece yet. R7 already de-risked the Greek glyph stack
(#173).
No
min_width_pixels. That knob exists to drop sub-pixel-wide RIVERpolygons, gated on the waterways centreline still drawing them (R53). This
layer has no river class — nothing thin to drop, no gate to meet.
min_area_pixels: 4(the shared floor) thins by size alone.Numbering.
09-water_bodies.yaml: the 07/08 slots are claimed by theopen places (#190) and transit (#194) PRs; appending next-free matches the
driver's convention. The layer reads only the staged lakes, so its build
order is free.
Verification
make build,go test ./...,config-check conf/grOK(7 layers, 41 acceptance tests),
check-queries conf/gr8/8 prepared.z11 73, z10 73, z9 68, z8 57, z7 38, z6 22, z5 6, z4 1, z3 0 — the
deliberate empty (4-px² floor at z3 is 1531 km² > Prespa's 493 km²; z4's
383 km² floor keeps exactly Prespa). z14 = the 76 ST_Dumped parts of the 73
source features (3 multipart lakes), all
water_class = 'lake', all named,0 NULLs, 0 invalid geometries in the source.
scripts/mvt-decode.pyonzxy_map(13, 4571, 3078)(over Prespa) —
water_bodiespresent with 1 feature;tiles --check conf/grPASS for water_bodies at z3 and z14 with keys[water_class name country](R121).?map=gr#12/40.80/20.93the page renders 7 water_bodies features and thelabel
ΛΙΜΝΗ ΜΕΓΑΛΗ ΠΡΕΣΠΑis present (queryRenderedFeatures over thewater_bodieslayer). Console 404s are pre-existing on every country map(same on se) — not from this layer.
--acceptance all(was 39; +2 new tests).make acceptancefull run: is 38/38, se 44/45 (1 needs-acceptance all),fi 49/49, world 27/28 (same not-run), pl 44/46 — the pl failure is the
pre-existing marginal buildings R120 10s timeout, identical to the
dd21ac2baseline (recorded in the #191 note).New acceptance tests (both on the layer, conf/gr/09-water_bodies.yaml)
empty) — the standard per-country R119 shape, gr table names.
lake, all named, the biggest lake is on the map — the waterways
district-test arithmetic style: z14 rows (76) = ST_Dump count over gr_lwb
(76), 0 non-lake, 0 unnamed, ΛΙΜΝΗ ΜΕΓΑΛΗ ΠΡΕΣΠΑ present.
Left undone / notes
conf/gris still absent fromimporter/configdir_test.go'scountryLayersmap andconfig_test.go'scountryConfigPaths— apre-existing gap (Greece was never added; the two open gr PRs don't touch
the maps either). Adding gr there now would go red the moment places/transit
merge without updating the map, so it stays a separate cleanup; a candidate
for a small follow-up issue.
47a0c1afcftobc9481c790