Files
GhiVideo_v4/docs/history/2026-07-02_역마커-실제측점일치-정정.md
b23042andClaude Fable 5 d38b842e8d GhiVideo 소스 복제 — v4 작업 시작 기준
기존 GhiVideo 저장소 HEAD의 트래킹 소스 362개 파일을 복제.
(node_modules·storage·빌드 산출물·대용량 미디어는 .gitignore 규칙대로 제외)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-09 14:32:51 +09:00

28 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 역 마커 — 실제 측점 일치 기준으로 정정 (162080 누락 수정)
**소요 시간**: 약 15분
**Context 사용량**: input ~230k / output ~4k tokens
## 문제
직전 수정(kmExists 게이트)이 너무 세서, **진짜 162080 위치의 대전조차장 마커까지 사라짐**.
## 원인
kmExists 게이트가 `|p.km stationKmVal|` 비교인데:
- 탐지는 `s.station`(등록 측점 162080) → p.km = 162080
- stationKmVal = `projectChainage(역 좌표)` (좌표 투영) — 등록값과 어긋날 수 있음
→ 둘이 다르면 게이트가 실제 162080 통과까지 제거.
## 수정 ([StationBar.tsx](../../client/src/stationbar/StationBar.tsx))
게이트 방식 폐기, 탐지 소스로 구분:
1. 역사(역)는 **좌표근접(pxPassesTo) 폴백을 배제**`pxPassesAtMileage`(실제 측점 일치)로만 탐지.
- `if (!passes.length && cat !== '역사' && ...) pxPassesTo(...)` (교량/터널만 허용)
2. `if (!kmExists) continue` 게이트 제거(주 경로 + 폴백 경로). kmExists 는 라벨/검색 참고용으로만 유지.
## 효과
- ① 좌표만 가까운(측점 다른) 조차장 재진입(드론 162210인데 162080)은 안 찍힘.
- ② 진짜 162080 통과에는 정상 표시.
- 검색은 이미 chain 기준(별도 수정)이라 마커 변경과 무관하게 정확.
## 검증
- `tsc --noEmit` 통과, `npm run build` 성공 → 해시 `index-Cdsf6M1x.js`(HUD `· 검색v3`) :55000 서빙.