fix(467 덧 새 측점 계획고): 짝 없는 새 측점(구조물 · 추가 측점 · 새 관)엔 계획선 꼭짓점을 안 세움 — [저장]으로 계획고가 지반고로 바뀌던 흠

- 파이썬 _follow_moved_stations · TS followMovedNodes(짝) — seat 기본 = 빈 목록 · 짝 있는 옮긴 관 · 구조물은 427 그대로
- 검증_sub5(계획고 = 지반고 상태) 소단 22+0 저장 = −17,595.6 → −17,499.3 이던 것 · 435 · 445 m 계획고가 지반고로 바뀜
- 시험 test_427_1(짝 없는 새 측점 = 꼭짓점 없음 · 놓기 전 계획선 높이 · TS 거울 125 · 287 그대로 통과) · test_384_3(심은 측점에 꼭짓점 없음) 고침

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 08:01:03 +09:00
co-authored by Claude Opus 5.5
parent dd70ce9b90
commit 2db6946365
4 changed files with 25 additions and 17 deletions
+6 -4
View File
@@ -347,8 +347,9 @@ export function oneStationList<S extends ListedStation, P extends { chainage_m:
* 사라진 구조물 측점(`gone`)의 계획선 꼭짓점을 새 측점(`born`)으로 옮기거나 지우고, 새로 세울 측점을 고른다 —
* 서버 `_follow_moved_stations`(B05_Profile_Router_Confirm.py) 짝: 0.006m 안 반올림 차이 · 옛 소수 측점의
* 정수 m 맞춤 자리(272)면 높이 그대로 옮김. 옮긴 관 · 구조물(427) — 짝 못 찾은 옛 측점과 새 측점이 같은
* 수면 차례대로 짝 · 높이 고친 꼭짓점(`edited` = 저장 `station_offsets` 키)은 높이째 · 나머지 새 측점은
* `seat`(세움은 부르는 쪽이 `seatBornNodes` · B05_Profile/logic/B05_Profile_Grade_Seat.ts) · 짝 없는 옛
* 수면 차례대로 짝 · 높이 고친 꼭짓점(`edited` = 저장 `station_offsets` 키)은 높이째 · 나머지 짝 새 측점은
* `seat`(세움은 부르는 쪽이 `seatBornNodes` · B05_Profile/logic/B05_Profile_Grade_Seat.ts) · 짝 없는 새 측점은
* 안 세움(467) · 짝 없는 옛
* 꼭짓점은 지움 · `held` = 옮긴 뒤 높이 고친 꼭짓점 측점(서버 옮긴 `station_offsets` 키 · 433-5).
* 거울 시험 = `resources/tester/test_427_1_follow_seat.py`.
*/
@@ -370,8 +371,9 @@ export function followMovedNodes<N extends { chainage_m: number }>(
.filter((value) => taken.every((key) => Math.abs(key - value) >= EPS))
.sort((a, b) => a - b);
const lost = gone.filter((old) => moves.get(old) === null).sort((a, b) => a - b);
// 꼭짓점을 새로 세울 측점 — 짝이면 높이 안 고친 것만 · 짝 없으면 새 측점 전부
let seat = left;
// 꼭짓점을 새로 세울 측점 — 짝(옮긴 관 · 구조물)이면 높이 안 고친 것만 · 짝 없는 새 측점은 안 세움(계획선
// 그대로 · [저장]으로 값이 안 바뀜 · 467)
let seat: number[] = [];
if (lost.length && lost.length === left.length) {
seat = [];
lost.forEach((old, index) => {