Fix 20nm compare page to use delivery schema

This commit is contained in:
OpenAI Codex
2026-03-31 16:14:02 +08:00
parent 08a12dd66b
commit 1a90927c26
2 changed files with 42 additions and 3 deletions

View File

@@ -162,6 +162,45 @@ Remote: `ssh://git@nas:2222/tei/pbf.git`
- 陆域/道路上下文层次
- 标注与航标文本/图标
### 20nm Compare Page Root Cause Fix
本轮已经定位并修正了一个关键问题:
- 之前 `navsea-compare-karatsu-20nm.html` 右侧使用的是:
- `style.compare-delivery-karatsu-10nm.json`
- 这份 compare style 大量读取:
- `class_code`
- `display_code`
- `label_position_code_legacy`
- `depth_value_m_legacy`
-`20nm delivery` 这批 PBF 实际提供的主字段是:
- `chart_*`
- `canonical_*`
- `place_name_*`
- `name_ja`
结论:
- 右侧此前“大面积只剩线、不见面、不见符号”的主因,是样式读取字段与 PBF 实际 schema 不匹配
本轮已修正:
- [`src/pbf/navsea-compare-karatsu-20nm.html`](/root/sourceserver/pbf/src/pbf/navsea-compare-karatsu-20nm.html)
- 右侧样式从:
- `./domain/style.compare-delivery-karatsu-10nm.json`
- 切回:
- `./domain/style.navsea-delivery-karatsu-10nm.json`
修正后结果:
- 右侧海区面、陆域面、道路和主要符号层已恢复显示
- 当前差距虽然仍然明显但已经从“schema 读错导致的整体失真”回到“正式 delivery style 本身与原始版仍有视觉差距”的层面
这意味着下一步可以更聚焦地修:
- `style.navsea-delivery-karatsu-10nm.json`
- 而不是继续在不兼容的 compare style 上浪费时间
## 20nm Delivery JP Status
已对 `/home/wwwroot/pbf-delivery-karatsu-20nm` 全量 `154` 个瓦片做扫描。

View File

@@ -237,7 +237,7 @@
<div class="toolbar">
<div>
<div class="title">唐津 20 海里对比页</div>
<div class="subtitle">左侧是原始版 <code>style.json</code>,右侧是更贴近旧视觉的兼容 delivery 样式 + 唐津 20 海里 delivery PBF。两边联动同步点击任一对象可查看属性适合直接肉眼排差异。</div>
<div class="subtitle">左侧是原始版 <code>style.json</code>,右侧是当前交付线使用的 delivery 样式 + 唐津 20 海里 delivery PBF。两边联动同步点击任一对象可查看属性适合直接肉眼排差异。</div>
</div>
<div class="toolbar-actions">
<button id="reload-btn" type="button">重新加载</button>
@@ -256,7 +256,7 @@
<section class="pane">
<div class="pane-tag">
<strong style="color: var(--right);">右侧 · Delivery</strong>
<span>兼容旧视觉 delivery style + 唐津 20 海里 PBF</span>
<span>正式 delivery style + 唐津 20 海里 PBF</span>
</div>
<div id="map-delivery" class="map"></div>
</section>
@@ -289,7 +289,7 @@
<script src="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js"></script>
<script>
const ORIGINAL_STYLE_URL = "./style.json";
const DELIVERY_STYLE_URL = "./domain/style.compare-delivery-karatsu-10nm.json";
const DELIVERY_STYLE_URL = "./domain/style.navsea-delivery-karatsu-10nm.json";
const ORIGINAL_TILE_URL = "http://192.168.200.184/newpec/exported_auto/tile.mapple-on.jp__newpec-mvt-20260106__z___x___y_.pbf/tiles/{z}/{x}/{y}.pbf";
const DELIVERY_TILE_URL = "http://192.168.200.184/pbf-delivery-karatsu-20nm/{z}/{x}/{y}.pbf";
const INITIAL_VIEW = {