Fix buoy icon fallback mapping in 20nm final style

This commit is contained in:
OpenAI Codex
2026-04-02 11:12:56 +08:00
parent 94c030ba32
commit 448597325e
4 changed files with 44 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ Remote: `ssh://git@nas:2222/tei/pbf.git`
当前页面支持 2 个 profile但仍是同一张 HTML
1. 唐津 20 海里
- `Style: karatsu-final-style-r12-20260401-1746 (style.navsea-delivery-karatsu-20nm-final.json)`
- `Style: karatsu-final-style-r13-20260402-0050 (style.navsea-delivery-karatsu-20nm-final.json)`
- `PBF: karatsu-final-pbf-20nm-20260402-0032 (pbf-delivery-karatsu-20nm-final)`
2. 九州
@@ -270,6 +270,15 @@ Remote: `ssh://git@nas:2222/tei/pbf.git`
- `clearance_height_m`
- 例:`荒津大橋 -> clearance_height_m = 38.0`
- 当前 final 统计:`clearance_limit_point = 33``missing clearance_height_m = 0`
- `p航路標識群` 里的浮标默认图标推断又补了一轮:
- `円柱型浮標 -> symbol-daytime-323`
- `円筒型浮標 -> symbol-daytime-325`
- `浮標 (やぐら型) -> symbol-daytime-327`
- 对应修正的是这类“对象没丢,但被 builder 预写成了错误 chart_icon_image”的情况
- 例:`fid=12011414 / 形状分類番号=323 / 表示用番号=32300002`
- 原始版应该是 `symbol-daytime-323`
- 修正前 delivery/final 被写成了 `chart_icon_image=symbol-daytime-321`
- 当前 compare 页 style 已补兜底并上线到 `style-r13`
- 当前正式审计顺序已经明确为:
-`object preservation audit`
-`render audit`

View File

@@ -1385,6 +1385,12 @@ class NavSeaTileBuilder:
return "symbol-daytime-310"
if chart_symbol_code == "light_buoy":
return "symbol-daytime-320"
if "浮標 (やぐら型)" in canonical_object_type:
return "symbol-daytime-327"
if "円柱型浮標" in canonical_object_type:
return "symbol-daytime-323"
if "円筒型浮標" in canonical_object_type:
return "symbol-daytime-325"
if chart_symbol_code in {"buoy", "nav_mark"}:
return "symbol-daytime-321"
if chart_symbol_code == "vais":

View File

@@ -334,7 +334,7 @@
deliveryPaneLabel: "最终 release style + 唐津 20 海里 final PBF",
deliveryStyleUrl: "./domain/style.navsea-delivery-karatsu-20nm-final.json",
deliveryTileUrl: "http://192.168.200.184/pbf-delivery-karatsu-20nm-final/{z}/{x}/{y}.pbf",
deliveryStyleVersion: "karatsu-final-style-r12-20260401-1746",
deliveryStyleVersion: "karatsu-final-style-r13-20260402-0050",
deliveryPbfVersion: "karatsu-final-pbf-20nm-20260402-0032",
deliveryStyleFile: "style.navsea-delivery-karatsu-20nm-final.json",
deliveryPbfName: "pbf-delivery-karatsu-20nm-final",

View File

@@ -1851,6 +1851,33 @@
"灯 (Lt)"
],
"symbol-daytime-303",
[
"==",
[
"get",
"canonical_object_type"
],
"浮標 (やぐら型)"
],
"symbol-daytime-327",
[
"==",
[
"get",
"canonical_object_type"
],
"円柱型浮標"
],
"symbol-daytime-323",
[
"==",
[
"get",
"canonical_object_type"
],
"円筒型浮標"
],
"symbol-daytime-325",
[
"coalesce",
[