Fix wreck hazard icon selection in 20nm final style

This commit is contained in:
OpenAI Codex
2026-04-01 16:39:37 +08:00
parent 5c4c91e462
commit 2aefea6982
4 changed files with 22 additions and 4 deletions

View File

@@ -1110,7 +1110,7 @@ class NavSeaTileBuilder:
if source_layer in {"p投錨注意障害物", "p航行危険障害物"}:
if "魚礁" in object_type:
return "hazard", "fish_reef"
if "沈船" in object_type:
if "沈船" in object_type or "沈没船" in object_type:
return "hazard", "wreck"
if any(token in object_type for token in ("暗岩", "洗岩", "干出岩", "水上岩", "露出岩")):
return "hazard", "rock_awash"
@@ -1323,7 +1323,7 @@ class NavSeaTileBuilder:
return "rock", "critical"
if any(token in object_type for token in ("岩礁", "サンゴ礁")):
return "reef", "major"
if "沈船" in object_type:
if "沈船" in object_type or "沈没船" in object_type:
if "危険" in object_type or "露出" in object_type:
return "wreck", "critical"
return "wreck", "major"
@@ -1379,6 +1379,12 @@ class NavSeaTileBuilder:
if light_color_code:
return "light-daytime-3"
if source_layer in {"p航行危険障害物", "p投錨注意障害物"}:
if "船体露出沈船" in canonical_object_type:
return "symbol-daytime-410"
if "危険全沈没船" in canonical_object_type:
return "symbol-daytime-412"
if "測定済みの沈船" in canonical_object_type:
return "symbol-daytime-413"
if chart_symbol_code == "fish_reef":
return "symbol-daytime-428"
if hazard_class == "rock":