Closes #152 #199
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!199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-152-shared-peaks"
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 #152
Shared peaks layer — fold is_haedarpunktar in (#152)
What changed
peaksis now a shared layer instead of Iceland-only.conf/shared/contracts/19-peaks.yaml(new) — thepeakscontract:stop_z: 11/maxz: 14/filter_only, attributesgeom(point) + elevation(int),and the two cross-country checks moved off Iceland: R119 (no empty partition z11–z14,
catalogue query) and R120 (every country's peaks carry a non-NULL elevation).
conf/is/08-peaks.yaml— nowextends: peaks, so it buildsmap_peaks_<z>_ispartitions instead of
ismap_peaks_<z>. The elevation ladder (zoom_filters) staysper-country, as does Iceland's one claim: a new R31 test asserting the z11 coarse
floor holds only the ≥500 m summits.
html/style.yaml— thepeakssymbol layer readssource: mapnow(
source-layer: peaksunchanged). The generatedhtml/style.jsonis regenerated andpasses
gl-style-validate(make build).conf/world.yaml—peaksadded to the sharedmapsource's layer list (sozxy_mapconcatenateszxy_map_peaks).conf/is/downloads.yaml— theissource's layer list trimmed to[contours](peaks is no longer served by
zxy_is).docs/— schema, style, country-requirements (R13 line + layer inventory), andcountry-iceland updated for the fold.
importer/configdir_test.go— shared-contract count 17 → 18.The attribute set is deliberately elevation-only
A spot height (geom + elevation) is the shape Iceland, Sweden (#101) and Poland (#104)
all fill, and the contract does not carry a
namecolumn: Finland's source (#108) isstill undecided (MTK
korkeuspistewas empty in the 2025 delivery; DEM spot heights vsnamed fells from
paikannimiare a different shape). The contract stays at the sharedshape rather than gambling on a
nameonly one option needs; whichever Finland lands oneither extends this contract or becomes a sibling one. That decision is reasoned in the
contract's comment.
Numbering note
The contract is
19-peaks.yaml(not 18) deliberately: #151's contours contract is18-contours.yaml, and while it is not yet on main it is landing, so 19 keeps thesequence clean rather than two
18-*files.Important: #151 is NOT merged
The task assumed #151 (contours, PR #198) was already merged, so
iswould have no usersafter this change. PR #198 is still open — on main the three contour layers still read
source: is. I therefore kept theissource block inhtml/style.yaml: contours needit until #198 merges. Once #198 lands,
ishas zero users and should be removed. My changemade
peaksthe first layer offis; #198's makes contours the second; whichever landssecond retires the source.
Verification (against the live DB, before commit)
make build,make test,importer config-check conf/is/andconf/world.yaml— allOK (18 shared contracts).
importer import conf/is/ --layer peaks). Iceland's data wasalready fetched (
is_50v_haedargogn_epsg_4326.gpkg); no re-download.ismap_peaks: z11=5678, z12=8936, z13=8936, z14=10156. All four partitions presentwith a gist geom index; 0 NULL elevations; one country (
is).scripts/mvt-decode.pyonzxy_map_peaks): thepeakslayer carriesthe
elevationandcountryattributes; the z11 coarse-floor tile yields 3 peaks (the≥500 m summits).
make acceptance— the peaks-specific and config-level checks pass:One pre-existing, unrelated flake
make acceptanceover all configs hit one failure:conf/plbuildings R120("every Poland source part becomes a classified footprint…") timed out at 10 s. It is
unrelated to this change — it reads only
map_buildings_*_pl/pl_bubd, which this PRnever touches — and is load-sensitive: the full query is 6.2 s in isolation but exceeds
10 s with the machine at load ~3.0 (5 users). Not a regression from this work; I did not
fix it here as it is outside #152's scope.
Left undone / notes
ismap_peaks_<z>tables remain (orphaned, no DROP).gl-style-validate. Theissource removal is deferred to #198's merge as above.istile source now that it is empty b61772359b