--- type: page-backend-detail status: draft related_pages: ["[[architecture/project_map]]", "[[architecture/workflow_data_flow]]"] page_id: B06_Section source_file: "B06_Section/B06_Section_Router.py" last_updated: 2026-07-24 --- # B06_Section_Router.py 종단 및 측점별 횡단 상세 데이터(`cross_*.json`) 파싱/서빙, 횡단 반폭 재생성, 수동 횡단 굴착/성토 설계 지정 및 stage 3 확정 API 라우터 모듈입니다. ## 🛠️ 라우터 API 및 주요 함수 목록 | 항목 | 위치(상대 경로) | 역할 | |---|---|---| | `get_section_context()` | `B06_Section/B06_Section_Router.py` | `GET /{project_id}/sections/context` — B04 확정 지표면, EPSG 좌표계 및 기본 측점 옵션 컨텍스트 반환 | | `get_forest_road_min_widths()` | `B06_Section/B06_Section_Router.py` | `GET /{project_id}/sections/road-widths` — B05 3D/종단뷰 마커 표시용 법정 최소 너비 반환 | | `get_sections()` | `B06_Section/B06_Section_Router.py` | `GET /{project_id}/sections/{route_id}` — 경로 종단 요약 정보 및 횡단 단면 수 반환 | | `get_section_detail()` | `B06_Section/B06_Section_Router.py` | `GET /{project_id}/sections/{route_id}/detail` — SVG 렌더링용 종단 및 `cross_*.json` 횡단 단면 원시 데이터 반환 | | `regenerate_sections()` | `B06_Section/B06_Section_Router.py` | `POST /{project_id}/sections/{route_id}/regenerate` — 횡단 반폭 옵션 갱신에 따른 단면 일괄 재계산 | | `_read_section_detail()` | `B06_Section/B06_Section_Router.py` | `longitudinal.json` 및 `cross_sections/cross_*.json` 무결 파싱 및 잔재 파일 삭제 필터 헬퍼 | ## 🔗 연관 개념 및 의존성 - `B05_Profile_Engine_Sections.py` — `prune_stale_cross_files`, `cross_filename` 헬퍼 공유 - `B06_Section_Repository.py` — `longitudinal_sections`, `cross_sections` DB CRUD