Files
Aislo/docs/wiki/pages/B06_Section/backend/B06_Section_Router.md
T
eomsangdonandClaude Opus 5 eb30b774f8 chore(docs): docs 폴더 git 추적 전환 · PLAN·OWNERS 최상위 이관
- `docs/` 를 .gitignore 에서 빼 git 추적 대상으로 전환 (위키·완료 이력·검증 기록)
- `docs/raw/PLAN.md` · `docs/raw/OWNERS.md` 를 저장소 최상위로 이동 후 .gitignore 에 등록
  — 창끼리 공유하되 저장소에는 안 올리는 장부
- 살아 있는 경로 참조 7개 파일 정정 (아카이브 107건은 그때 사실이라 그대로 둠)
- graphify 날짜별 산출물(`docs/wiki/graphify-out/20*/`) 제외 — `graphify update` 가 다시 만듦

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-09 18:19:07 +09:00

1.8 KiB

type, status, related_pages, page_id, source_file, last_updated
type status related_pages page_id source_file last_updated
page-backend-detail draft
architecture/project_map
architecture/workflow_data_flow
B06_Section B06_Section/B06_Section_Router.py 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.jsoncross_sections/cross_*.json 무결 파싱 및 잔재 파일 삭제 필터 헬퍼

🔗 연관 개념 및 의존성

  • B05_Profile_Engine_Sections.pyprune_stale_cross_files, cross_filename 헬퍼 공유
  • B06_Section_Repository.pylongitudinal_sections, cross_sections DB CRUD