-- V67: K1 밴드↔홀 번호 확증에 따른 실측 시드 전면 재배정 (2026-07-16).
-- 확증 근거: 전기 회로 라벨 P{패널}-{홀}{구역}-{번호} 832건 전수 — band1=홀5 165건, band2=홀4 168건,
--   band3=홀3 168건, band4=홀2 168건, band5=홀1 163건 (예외 0). 즉 band n = 홀 (6-n).
-- 기존 V61~V63/V65의 K1 시드는 "band n = 홀 n" 오가정으로 H1↔H5·H2↔H4가 뒤바뀜 → 전체 삭제 후
-- 교정 생성기(tools/cad/extract_*_seed.py, 매핑 6-n) 산출로 재시드. K2(H6~H10)는 무관(불변).
-- 노치·외부 출입구 방향 특징 대조도 동일 결론(docs/analysis/cad-extraction.md).

-- 0) K1 실측 행 전체 삭제(구 매핑 산출물)
DELETE FROM trench        WHERE hall_id IN ('H1','H2','H3','H4','H5') AND id LIKE '%-RT-%';
DELETE FROM hall_pillar   WHERE hall_id IN ('H1','H2','H3','H4','H5');
DELETE FROM hall_obstacle WHERE hall_id IN ('H1','H2','H3','H4','H5');
DELETE FROM hall_exit     WHERE hall_id IN ('H1','H2','H3','H4','H5') AND is_assumed = false;

-- ═══ v67_trench.sql (교정 매핑 재생성) ═══
-- V61: K1 홀1~5 트렌치 실측 시드 — CAD(전기,설비 트렌치.dwg) 레이어 5-트랜치 추출.
-- 생성기: tools/cad/extract_trench_seed.py (재생성 가능·결정적). 근거: docs/analysis/cad-extraction.md.
-- 실측: 홀당 가로 채널(쌍선 병합 중심선)·연장 실좌표. 포인트 6m 간격은 샘플링 규약.
-- 정책: 실측 확보 홀(H1~H5)의 가정(is_assumed) 포인트를 실측 포인트로 대체. K2(H6~10)는 가정 유지.
-- 공급 플래그는 V5 정책 유지(공동구 — 전 서비스 true·gas는 홀 보유 여부), 위치만 실측 대체.

-- H1: 실측 채널 7개
DELETE FROM trench WHERE hall_id = 'H1' AND is_assumed;
INSERT INTO trench (id, hall_id, geom, supply_power, supply_water, supply_air, supply_network, supply_gas, is_assumed)
VALUES
    ('H1-RT-1-1', 'H1', ST_SetSRID(ST_MakePoint(20.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-2', 'H1', ST_SetSRID(ST_MakePoint(26.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-3', 'H1', ST_SetSRID(ST_MakePoint(32.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-4', 'H1', ST_SetSRID(ST_MakePoint(38.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-5', 'H1', ST_SetSRID(ST_MakePoint(44.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-6', 'H1', ST_SetSRID(ST_MakePoint(50.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-7', 'H1', ST_SetSRID(ST_MakePoint(56.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-8', 'H1', ST_SetSRID(ST_MakePoint(62.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-9', 'H1', ST_SetSRID(ST_MakePoint(68.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-10', 'H1', ST_SetSRID(ST_MakePoint(74.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-11', 'H1', ST_SetSRID(ST_MakePoint(80.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-12', 'H1', ST_SetSRID(ST_MakePoint(86.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-13', 'H1', ST_SetSRID(ST_MakePoint(92.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-14', 'H1', ST_SetSRID(ST_MakePoint(98.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-15', 'H1', ST_SetSRID(ST_MakePoint(104.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-16', 'H1', ST_SetSRID(ST_MakePoint(110.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-17', 'H1', ST_SetSRID(ST_MakePoint(116.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-18', 'H1', ST_SetSRID(ST_MakePoint(122.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-19', 'H1', ST_SetSRID(ST_MakePoint(128.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-20', 'H1', ST_SetSRID(ST_MakePoint(134.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-21', 'H1', ST_SetSRID(ST_MakePoint(140.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-22', 'H1', ST_SetSRID(ST_MakePoint(146.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-23', 'H1', ST_SetSRID(ST_MakePoint(152.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-24', 'H1', ST_SetSRID(ST_MakePoint(158.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-1-25', 'H1', ST_SetSRID(ST_MakePoint(164.64, 3.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-1', 'H1', ST_SetSRID(ST_MakePoint(20.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-2', 'H1', ST_SetSRID(ST_MakePoint(26.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-3', 'H1', ST_SetSRID(ST_MakePoint(32.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-4', 'H1', ST_SetSRID(ST_MakePoint(38.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-5', 'H1', ST_SetSRID(ST_MakePoint(44.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-6', 'H1', ST_SetSRID(ST_MakePoint(50.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-7', 'H1', ST_SetSRID(ST_MakePoint(56.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-8', 'H1', ST_SetSRID(ST_MakePoint(62.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-9', 'H1', ST_SetSRID(ST_MakePoint(68.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-10', 'H1', ST_SetSRID(ST_MakePoint(74.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-11', 'H1', ST_SetSRID(ST_MakePoint(80.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-12', 'H1', ST_SetSRID(ST_MakePoint(86.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-13', 'H1', ST_SetSRID(ST_MakePoint(92.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-14', 'H1', ST_SetSRID(ST_MakePoint(98.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-15', 'H1', ST_SetSRID(ST_MakePoint(104.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-16', 'H1', ST_SetSRID(ST_MakePoint(110.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-17', 'H1', ST_SetSRID(ST_MakePoint(116.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-18', 'H1', ST_SetSRID(ST_MakePoint(122.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-19', 'H1', ST_SetSRID(ST_MakePoint(128.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-20', 'H1', ST_SetSRID(ST_MakePoint(134.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-21', 'H1', ST_SetSRID(ST_MakePoint(140.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-22', 'H1', ST_SetSRID(ST_MakePoint(146.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-23', 'H1', ST_SetSRID(ST_MakePoint(152.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-24', 'H1', ST_SetSRID(ST_MakePoint(158.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-2-25', 'H1', ST_SetSRID(ST_MakePoint(164.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-1', 'H1', ST_SetSRID(ST_MakePoint(20.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-2', 'H1', ST_SetSRID(ST_MakePoint(26.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-3', 'H1', ST_SetSRID(ST_MakePoint(32.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-4', 'H1', ST_SetSRID(ST_MakePoint(38.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-5', 'H1', ST_SetSRID(ST_MakePoint(44.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-6', 'H1', ST_SetSRID(ST_MakePoint(50.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-7', 'H1', ST_SetSRID(ST_MakePoint(56.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-8', 'H1', ST_SetSRID(ST_MakePoint(62.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-9', 'H1', ST_SetSRID(ST_MakePoint(68.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-10', 'H1', ST_SetSRID(ST_MakePoint(74.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-11', 'H1', ST_SetSRID(ST_MakePoint(80.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-12', 'H1', ST_SetSRID(ST_MakePoint(86.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-13', 'H1', ST_SetSRID(ST_MakePoint(92.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-14', 'H1', ST_SetSRID(ST_MakePoint(98.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-15', 'H1', ST_SetSRID(ST_MakePoint(104.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-16', 'H1', ST_SetSRID(ST_MakePoint(110.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-17', 'H1', ST_SetSRID(ST_MakePoint(116.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-18', 'H1', ST_SetSRID(ST_MakePoint(122.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-19', 'H1', ST_SetSRID(ST_MakePoint(128.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-20', 'H1', ST_SetSRID(ST_MakePoint(134.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-21', 'H1', ST_SetSRID(ST_MakePoint(140.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-22', 'H1', ST_SetSRID(ST_MakePoint(146.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-23', 'H1', ST_SetSRID(ST_MakePoint(152.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-24', 'H1', ST_SetSRID(ST_MakePoint(158.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-3-25', 'H1', ST_SetSRID(ST_MakePoint(164.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-1', 'H1', ST_SetSRID(ST_MakePoint(20.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-2', 'H1', ST_SetSRID(ST_MakePoint(26.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-3', 'H1', ST_SetSRID(ST_MakePoint(32.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-4', 'H1', ST_SetSRID(ST_MakePoint(38.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-5', 'H1', ST_SetSRID(ST_MakePoint(44.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-6', 'H1', ST_SetSRID(ST_MakePoint(50.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-7', 'H1', ST_SetSRID(ST_MakePoint(56.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-8', 'H1', ST_SetSRID(ST_MakePoint(62.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-9', 'H1', ST_SetSRID(ST_MakePoint(68.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-10', 'H1', ST_SetSRID(ST_MakePoint(74.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-11', 'H1', ST_SetSRID(ST_MakePoint(80.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-12', 'H1', ST_SetSRID(ST_MakePoint(86.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-13', 'H1', ST_SetSRID(ST_MakePoint(92.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-14', 'H1', ST_SetSRID(ST_MakePoint(98.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-15', 'H1', ST_SetSRID(ST_MakePoint(104.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-16', 'H1', ST_SetSRID(ST_MakePoint(110.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-17', 'H1', ST_SetSRID(ST_MakePoint(116.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-18', 'H1', ST_SetSRID(ST_MakePoint(122.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-19', 'H1', ST_SetSRID(ST_MakePoint(128.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-20', 'H1', ST_SetSRID(ST_MakePoint(134.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-21', 'H1', ST_SetSRID(ST_MakePoint(140.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-22', 'H1', ST_SetSRID(ST_MakePoint(146.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-23', 'H1', ST_SetSRID(ST_MakePoint(152.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-24', 'H1', ST_SetSRID(ST_MakePoint(158.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-4-25', 'H1', ST_SetSRID(ST_MakePoint(164.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-1', 'H1', ST_SetSRID(ST_MakePoint(20.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-2', 'H1', ST_SetSRID(ST_MakePoint(26.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-3', 'H1', ST_SetSRID(ST_MakePoint(32.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-4', 'H1', ST_SetSRID(ST_MakePoint(38.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-5', 'H1', ST_SetSRID(ST_MakePoint(44.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-6', 'H1', ST_SetSRID(ST_MakePoint(50.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-7', 'H1', ST_SetSRID(ST_MakePoint(56.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-8', 'H1', ST_SetSRID(ST_MakePoint(62.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-9', 'H1', ST_SetSRID(ST_MakePoint(68.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-10', 'H1', ST_SetSRID(ST_MakePoint(74.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-11', 'H1', ST_SetSRID(ST_MakePoint(80.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-12', 'H1', ST_SetSRID(ST_MakePoint(86.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-13', 'H1', ST_SetSRID(ST_MakePoint(92.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-14', 'H1', ST_SetSRID(ST_MakePoint(98.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-15', 'H1', ST_SetSRID(ST_MakePoint(104.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-16', 'H1', ST_SetSRID(ST_MakePoint(110.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-17', 'H1', ST_SetSRID(ST_MakePoint(116.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-18', 'H1', ST_SetSRID(ST_MakePoint(122.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-19', 'H1', ST_SetSRID(ST_MakePoint(128.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-20', 'H1', ST_SetSRID(ST_MakePoint(134.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-21', 'H1', ST_SetSRID(ST_MakePoint(140.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-22', 'H1', ST_SetSRID(ST_MakePoint(146.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-23', 'H1', ST_SetSRID(ST_MakePoint(152.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-24', 'H1', ST_SetSRID(ST_MakePoint(158.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-5-25', 'H1', ST_SetSRID(ST_MakePoint(164.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-1', 'H1', ST_SetSRID(ST_MakePoint(20.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-2', 'H1', ST_SetSRID(ST_MakePoint(26.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-3', 'H1', ST_SetSRID(ST_MakePoint(32.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-4', 'H1', ST_SetSRID(ST_MakePoint(38.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-5', 'H1', ST_SetSRID(ST_MakePoint(44.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-6', 'H1', ST_SetSRID(ST_MakePoint(50.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-7', 'H1', ST_SetSRID(ST_MakePoint(56.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-8', 'H1', ST_SetSRID(ST_MakePoint(62.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-9', 'H1', ST_SetSRID(ST_MakePoint(68.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-10', 'H1', ST_SetSRID(ST_MakePoint(74.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-11', 'H1', ST_SetSRID(ST_MakePoint(80.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-12', 'H1', ST_SetSRID(ST_MakePoint(86.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-13', 'H1', ST_SetSRID(ST_MakePoint(92.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-14', 'H1', ST_SetSRID(ST_MakePoint(98.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-15', 'H1', ST_SetSRID(ST_MakePoint(104.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-16', 'H1', ST_SetSRID(ST_MakePoint(110.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-17', 'H1', ST_SetSRID(ST_MakePoint(116.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-18', 'H1', ST_SetSRID(ST_MakePoint(122.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-19', 'H1', ST_SetSRID(ST_MakePoint(128.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-20', 'H1', ST_SetSRID(ST_MakePoint(134.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-21', 'H1', ST_SetSRID(ST_MakePoint(140.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-22', 'H1', ST_SetSRID(ST_MakePoint(146.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-23', 'H1', ST_SetSRID(ST_MakePoint(152.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-24', 'H1', ST_SetSRID(ST_MakePoint(158.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-6-25', 'H1', ST_SetSRID(ST_MakePoint(164.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-1', 'H1', ST_SetSRID(ST_MakePoint(20.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-2', 'H1', ST_SetSRID(ST_MakePoint(26.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-3', 'H1', ST_SetSRID(ST_MakePoint(32.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-4', 'H1', ST_SetSRID(ST_MakePoint(38.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-5', 'H1', ST_SetSRID(ST_MakePoint(44.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-6', 'H1', ST_SetSRID(ST_MakePoint(50.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-7', 'H1', ST_SetSRID(ST_MakePoint(56.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-8', 'H1', ST_SetSRID(ST_MakePoint(62.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-9', 'H1', ST_SetSRID(ST_MakePoint(68.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-10', 'H1', ST_SetSRID(ST_MakePoint(74.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-11', 'H1', ST_SetSRID(ST_MakePoint(80.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-12', 'H1', ST_SetSRID(ST_MakePoint(86.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-13', 'H1', ST_SetSRID(ST_MakePoint(92.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-14', 'H1', ST_SetSRID(ST_MakePoint(98.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-15', 'H1', ST_SetSRID(ST_MakePoint(104.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-16', 'H1', ST_SetSRID(ST_MakePoint(110.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-17', 'H1', ST_SetSRID(ST_MakePoint(116.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-18', 'H1', ST_SetSRID(ST_MakePoint(122.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-19', 'H1', ST_SetSRID(ST_MakePoint(128.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-20', 'H1', ST_SetSRID(ST_MakePoint(134.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-21', 'H1', ST_SetSRID(ST_MakePoint(140.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-22', 'H1', ST_SetSRID(ST_MakePoint(146.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-23', 'H1', ST_SetSRID(ST_MakePoint(152.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-24', 'H1', ST_SetSRID(ST_MakePoint(158.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false),
    ('H1-RT-7-25', 'H1', ST_SetSRID(ST_MakePoint(164.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H1'), false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H2: 실측 채널 7개
DELETE FROM trench WHERE hall_id = 'H2' AND is_assumed;
INSERT INTO trench (id, hall_id, geom, supply_power, supply_water, supply_air, supply_network, supply_gas, is_assumed)
VALUES
    ('H2-RT-1-1', 'H2', ST_SetSRID(ST_MakePoint(20.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-2', 'H2', ST_SetSRID(ST_MakePoint(26.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-3', 'H2', ST_SetSRID(ST_MakePoint(32.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-4', 'H2', ST_SetSRID(ST_MakePoint(38.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-5', 'H2', ST_SetSRID(ST_MakePoint(44.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-6', 'H2', ST_SetSRID(ST_MakePoint(50.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-7', 'H2', ST_SetSRID(ST_MakePoint(56.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-8', 'H2', ST_SetSRID(ST_MakePoint(62.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-9', 'H2', ST_SetSRID(ST_MakePoint(68.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-10', 'H2', ST_SetSRID(ST_MakePoint(74.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-11', 'H2', ST_SetSRID(ST_MakePoint(80.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-12', 'H2', ST_SetSRID(ST_MakePoint(86.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-13', 'H2', ST_SetSRID(ST_MakePoint(92.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-14', 'H2', ST_SetSRID(ST_MakePoint(98.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-15', 'H2', ST_SetSRID(ST_MakePoint(104.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-16', 'H2', ST_SetSRID(ST_MakePoint(110.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-17', 'H2', ST_SetSRID(ST_MakePoint(116.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-18', 'H2', ST_SetSRID(ST_MakePoint(122.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-19', 'H2', ST_SetSRID(ST_MakePoint(128.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-20', 'H2', ST_SetSRID(ST_MakePoint(134.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-21', 'H2', ST_SetSRID(ST_MakePoint(140.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-22', 'H2', ST_SetSRID(ST_MakePoint(146.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-23', 'H2', ST_SetSRID(ST_MakePoint(152.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-24', 'H2', ST_SetSRID(ST_MakePoint(158.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-1-25', 'H2', ST_SetSRID(ST_MakePoint(164.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-1', 'H2', ST_SetSRID(ST_MakePoint(20.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-2', 'H2', ST_SetSRID(ST_MakePoint(26.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-3', 'H2', ST_SetSRID(ST_MakePoint(32.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-4', 'H2', ST_SetSRID(ST_MakePoint(38.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-5', 'H2', ST_SetSRID(ST_MakePoint(44.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-6', 'H2', ST_SetSRID(ST_MakePoint(50.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-7', 'H2', ST_SetSRID(ST_MakePoint(56.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-8', 'H2', ST_SetSRID(ST_MakePoint(62.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-9', 'H2', ST_SetSRID(ST_MakePoint(68.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-10', 'H2', ST_SetSRID(ST_MakePoint(74.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-11', 'H2', ST_SetSRID(ST_MakePoint(80.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-12', 'H2', ST_SetSRID(ST_MakePoint(86.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-13', 'H2', ST_SetSRID(ST_MakePoint(92.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-14', 'H2', ST_SetSRID(ST_MakePoint(98.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-15', 'H2', ST_SetSRID(ST_MakePoint(104.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-16', 'H2', ST_SetSRID(ST_MakePoint(110.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-17', 'H2', ST_SetSRID(ST_MakePoint(116.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-18', 'H2', ST_SetSRID(ST_MakePoint(122.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-19', 'H2', ST_SetSRID(ST_MakePoint(128.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-20', 'H2', ST_SetSRID(ST_MakePoint(134.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-21', 'H2', ST_SetSRID(ST_MakePoint(140.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-22', 'H2', ST_SetSRID(ST_MakePoint(146.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-23', 'H2', ST_SetSRID(ST_MakePoint(152.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-24', 'H2', ST_SetSRID(ST_MakePoint(158.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-2-25', 'H2', ST_SetSRID(ST_MakePoint(164.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-1', 'H2', ST_SetSRID(ST_MakePoint(20.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-2', 'H2', ST_SetSRID(ST_MakePoint(26.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-3', 'H2', ST_SetSRID(ST_MakePoint(32.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-4', 'H2', ST_SetSRID(ST_MakePoint(38.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-5', 'H2', ST_SetSRID(ST_MakePoint(44.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-6', 'H2', ST_SetSRID(ST_MakePoint(50.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-7', 'H2', ST_SetSRID(ST_MakePoint(56.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-8', 'H2', ST_SetSRID(ST_MakePoint(62.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-9', 'H2', ST_SetSRID(ST_MakePoint(68.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-10', 'H2', ST_SetSRID(ST_MakePoint(74.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-11', 'H2', ST_SetSRID(ST_MakePoint(80.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-12', 'H2', ST_SetSRID(ST_MakePoint(86.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-13', 'H2', ST_SetSRID(ST_MakePoint(92.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-14', 'H2', ST_SetSRID(ST_MakePoint(98.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-15', 'H2', ST_SetSRID(ST_MakePoint(104.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-16', 'H2', ST_SetSRID(ST_MakePoint(110.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-17', 'H2', ST_SetSRID(ST_MakePoint(116.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-18', 'H2', ST_SetSRID(ST_MakePoint(122.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-19', 'H2', ST_SetSRID(ST_MakePoint(128.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-20', 'H2', ST_SetSRID(ST_MakePoint(134.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-21', 'H2', ST_SetSRID(ST_MakePoint(140.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-22', 'H2', ST_SetSRID(ST_MakePoint(146.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-23', 'H2', ST_SetSRID(ST_MakePoint(152.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-24', 'H2', ST_SetSRID(ST_MakePoint(158.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-3-25', 'H2', ST_SetSRID(ST_MakePoint(164.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-1', 'H2', ST_SetSRID(ST_MakePoint(20.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-2', 'H2', ST_SetSRID(ST_MakePoint(26.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-3', 'H2', ST_SetSRID(ST_MakePoint(32.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-4', 'H2', ST_SetSRID(ST_MakePoint(38.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-5', 'H2', ST_SetSRID(ST_MakePoint(44.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-6', 'H2', ST_SetSRID(ST_MakePoint(50.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-7', 'H2', ST_SetSRID(ST_MakePoint(56.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-8', 'H2', ST_SetSRID(ST_MakePoint(62.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-9', 'H2', ST_SetSRID(ST_MakePoint(68.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-10', 'H2', ST_SetSRID(ST_MakePoint(74.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-11', 'H2', ST_SetSRID(ST_MakePoint(80.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-12', 'H2', ST_SetSRID(ST_MakePoint(86.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-13', 'H2', ST_SetSRID(ST_MakePoint(92.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-14', 'H2', ST_SetSRID(ST_MakePoint(98.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-15', 'H2', ST_SetSRID(ST_MakePoint(104.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-16', 'H2', ST_SetSRID(ST_MakePoint(110.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-17', 'H2', ST_SetSRID(ST_MakePoint(116.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-18', 'H2', ST_SetSRID(ST_MakePoint(122.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-19', 'H2', ST_SetSRID(ST_MakePoint(128.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-20', 'H2', ST_SetSRID(ST_MakePoint(134.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-21', 'H2', ST_SetSRID(ST_MakePoint(140.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-22', 'H2', ST_SetSRID(ST_MakePoint(146.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-23', 'H2', ST_SetSRID(ST_MakePoint(152.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-24', 'H2', ST_SetSRID(ST_MakePoint(158.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-4-25', 'H2', ST_SetSRID(ST_MakePoint(164.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-1', 'H2', ST_SetSRID(ST_MakePoint(20.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-2', 'H2', ST_SetSRID(ST_MakePoint(26.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-3', 'H2', ST_SetSRID(ST_MakePoint(32.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-4', 'H2', ST_SetSRID(ST_MakePoint(38.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-5', 'H2', ST_SetSRID(ST_MakePoint(44.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-6', 'H2', ST_SetSRID(ST_MakePoint(50.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-7', 'H2', ST_SetSRID(ST_MakePoint(56.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-8', 'H2', ST_SetSRID(ST_MakePoint(62.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-9', 'H2', ST_SetSRID(ST_MakePoint(68.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-10', 'H2', ST_SetSRID(ST_MakePoint(74.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-11', 'H2', ST_SetSRID(ST_MakePoint(80.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-12', 'H2', ST_SetSRID(ST_MakePoint(86.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-13', 'H2', ST_SetSRID(ST_MakePoint(92.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-14', 'H2', ST_SetSRID(ST_MakePoint(98.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-15', 'H2', ST_SetSRID(ST_MakePoint(104.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-16', 'H2', ST_SetSRID(ST_MakePoint(110.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-17', 'H2', ST_SetSRID(ST_MakePoint(116.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-18', 'H2', ST_SetSRID(ST_MakePoint(122.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-19', 'H2', ST_SetSRID(ST_MakePoint(128.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-20', 'H2', ST_SetSRID(ST_MakePoint(134.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-21', 'H2', ST_SetSRID(ST_MakePoint(140.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-22', 'H2', ST_SetSRID(ST_MakePoint(146.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-23', 'H2', ST_SetSRID(ST_MakePoint(152.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-24', 'H2', ST_SetSRID(ST_MakePoint(158.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-5-25', 'H2', ST_SetSRID(ST_MakePoint(164.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-1', 'H2', ST_SetSRID(ST_MakePoint(20.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-2', 'H2', ST_SetSRID(ST_MakePoint(26.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-3', 'H2', ST_SetSRID(ST_MakePoint(32.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-4', 'H2', ST_SetSRID(ST_MakePoint(38.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-5', 'H2', ST_SetSRID(ST_MakePoint(44.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-6', 'H2', ST_SetSRID(ST_MakePoint(50.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-7', 'H2', ST_SetSRID(ST_MakePoint(56.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-8', 'H2', ST_SetSRID(ST_MakePoint(62.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-9', 'H2', ST_SetSRID(ST_MakePoint(68.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-10', 'H2', ST_SetSRID(ST_MakePoint(74.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-11', 'H2', ST_SetSRID(ST_MakePoint(80.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-12', 'H2', ST_SetSRID(ST_MakePoint(86.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-13', 'H2', ST_SetSRID(ST_MakePoint(92.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-14', 'H2', ST_SetSRID(ST_MakePoint(98.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-15', 'H2', ST_SetSRID(ST_MakePoint(104.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-16', 'H2', ST_SetSRID(ST_MakePoint(110.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-17', 'H2', ST_SetSRID(ST_MakePoint(116.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-18', 'H2', ST_SetSRID(ST_MakePoint(122.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-19', 'H2', ST_SetSRID(ST_MakePoint(128.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-20', 'H2', ST_SetSRID(ST_MakePoint(134.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-21', 'H2', ST_SetSRID(ST_MakePoint(140.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-22', 'H2', ST_SetSRID(ST_MakePoint(146.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-23', 'H2', ST_SetSRID(ST_MakePoint(152.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-24', 'H2', ST_SetSRID(ST_MakePoint(158.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-6-25', 'H2', ST_SetSRID(ST_MakePoint(164.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-1', 'H2', ST_SetSRID(ST_MakePoint(20.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-2', 'H2', ST_SetSRID(ST_MakePoint(26.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-3', 'H2', ST_SetSRID(ST_MakePoint(32.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-4', 'H2', ST_SetSRID(ST_MakePoint(38.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-5', 'H2', ST_SetSRID(ST_MakePoint(44.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-6', 'H2', ST_SetSRID(ST_MakePoint(50.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-7', 'H2', ST_SetSRID(ST_MakePoint(56.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-8', 'H2', ST_SetSRID(ST_MakePoint(62.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-9', 'H2', ST_SetSRID(ST_MakePoint(68.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-10', 'H2', ST_SetSRID(ST_MakePoint(74.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-11', 'H2', ST_SetSRID(ST_MakePoint(80.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-12', 'H2', ST_SetSRID(ST_MakePoint(86.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-13', 'H2', ST_SetSRID(ST_MakePoint(92.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-14', 'H2', ST_SetSRID(ST_MakePoint(98.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-15', 'H2', ST_SetSRID(ST_MakePoint(104.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-16', 'H2', ST_SetSRID(ST_MakePoint(110.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-17', 'H2', ST_SetSRID(ST_MakePoint(116.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-18', 'H2', ST_SetSRID(ST_MakePoint(122.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-19', 'H2', ST_SetSRID(ST_MakePoint(128.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-20', 'H2', ST_SetSRID(ST_MakePoint(134.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-21', 'H2', ST_SetSRID(ST_MakePoint(140.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-22', 'H2', ST_SetSRID(ST_MakePoint(146.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-23', 'H2', ST_SetSRID(ST_MakePoint(152.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-24', 'H2', ST_SetSRID(ST_MakePoint(158.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false),
    ('H2-RT-7-25', 'H2', ST_SetSRID(ST_MakePoint(164.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H2'), false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H3: 실측 채널 7개
DELETE FROM trench WHERE hall_id = 'H3' AND is_assumed;
INSERT INTO trench (id, hall_id, geom, supply_power, supply_water, supply_air, supply_network, supply_gas, is_assumed)
VALUES
    ('H3-RT-1-1', 'H3', ST_SetSRID(ST_MakePoint(20.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-2', 'H3', ST_SetSRID(ST_MakePoint(26.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-3', 'H3', ST_SetSRID(ST_MakePoint(32.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-4', 'H3', ST_SetSRID(ST_MakePoint(38.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-5', 'H3', ST_SetSRID(ST_MakePoint(44.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-6', 'H3', ST_SetSRID(ST_MakePoint(50.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-7', 'H3', ST_SetSRID(ST_MakePoint(56.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-8', 'H3', ST_SetSRID(ST_MakePoint(62.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-9', 'H3', ST_SetSRID(ST_MakePoint(68.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-10', 'H3', ST_SetSRID(ST_MakePoint(74.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-11', 'H3', ST_SetSRID(ST_MakePoint(80.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-12', 'H3', ST_SetSRID(ST_MakePoint(86.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-13', 'H3', ST_SetSRID(ST_MakePoint(92.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-14', 'H3', ST_SetSRID(ST_MakePoint(98.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-15', 'H3', ST_SetSRID(ST_MakePoint(104.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-16', 'H3', ST_SetSRID(ST_MakePoint(110.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-17', 'H3', ST_SetSRID(ST_MakePoint(116.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-18', 'H3', ST_SetSRID(ST_MakePoint(122.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-19', 'H3', ST_SetSRID(ST_MakePoint(128.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-20', 'H3', ST_SetSRID(ST_MakePoint(134.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-21', 'H3', ST_SetSRID(ST_MakePoint(140.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-22', 'H3', ST_SetSRID(ST_MakePoint(146.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-23', 'H3', ST_SetSRID(ST_MakePoint(152.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-24', 'H3', ST_SetSRID(ST_MakePoint(158.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-1-25', 'H3', ST_SetSRID(ST_MakePoint(164.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-1', 'H3', ST_SetSRID(ST_MakePoint(20.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-2', 'H3', ST_SetSRID(ST_MakePoint(26.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-3', 'H3', ST_SetSRID(ST_MakePoint(32.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-4', 'H3', ST_SetSRID(ST_MakePoint(38.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-5', 'H3', ST_SetSRID(ST_MakePoint(44.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-6', 'H3', ST_SetSRID(ST_MakePoint(50.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-7', 'H3', ST_SetSRID(ST_MakePoint(56.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-8', 'H3', ST_SetSRID(ST_MakePoint(62.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-9', 'H3', ST_SetSRID(ST_MakePoint(68.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-10', 'H3', ST_SetSRID(ST_MakePoint(74.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-11', 'H3', ST_SetSRID(ST_MakePoint(80.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-12', 'H3', ST_SetSRID(ST_MakePoint(86.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-13', 'H3', ST_SetSRID(ST_MakePoint(92.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-14', 'H3', ST_SetSRID(ST_MakePoint(98.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-15', 'H3', ST_SetSRID(ST_MakePoint(104.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-16', 'H3', ST_SetSRID(ST_MakePoint(110.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-17', 'H3', ST_SetSRID(ST_MakePoint(116.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-18', 'H3', ST_SetSRID(ST_MakePoint(122.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-19', 'H3', ST_SetSRID(ST_MakePoint(128.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-20', 'H3', ST_SetSRID(ST_MakePoint(134.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-21', 'H3', ST_SetSRID(ST_MakePoint(140.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-22', 'H3', ST_SetSRID(ST_MakePoint(146.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-23', 'H3', ST_SetSRID(ST_MakePoint(152.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-24', 'H3', ST_SetSRID(ST_MakePoint(158.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-2-25', 'H3', ST_SetSRID(ST_MakePoint(164.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-1', 'H3', ST_SetSRID(ST_MakePoint(20.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-2', 'H3', ST_SetSRID(ST_MakePoint(26.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-3', 'H3', ST_SetSRID(ST_MakePoint(32.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-4', 'H3', ST_SetSRID(ST_MakePoint(38.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-5', 'H3', ST_SetSRID(ST_MakePoint(44.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-6', 'H3', ST_SetSRID(ST_MakePoint(50.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-7', 'H3', ST_SetSRID(ST_MakePoint(56.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-8', 'H3', ST_SetSRID(ST_MakePoint(62.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-9', 'H3', ST_SetSRID(ST_MakePoint(68.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-10', 'H3', ST_SetSRID(ST_MakePoint(74.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-11', 'H3', ST_SetSRID(ST_MakePoint(80.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-12', 'H3', ST_SetSRID(ST_MakePoint(86.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-13', 'H3', ST_SetSRID(ST_MakePoint(92.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-14', 'H3', ST_SetSRID(ST_MakePoint(98.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-15', 'H3', ST_SetSRID(ST_MakePoint(104.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-16', 'H3', ST_SetSRID(ST_MakePoint(110.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-17', 'H3', ST_SetSRID(ST_MakePoint(116.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-18', 'H3', ST_SetSRID(ST_MakePoint(122.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-19', 'H3', ST_SetSRID(ST_MakePoint(128.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-20', 'H3', ST_SetSRID(ST_MakePoint(134.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-21', 'H3', ST_SetSRID(ST_MakePoint(140.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-22', 'H3', ST_SetSRID(ST_MakePoint(146.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-23', 'H3', ST_SetSRID(ST_MakePoint(152.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-24', 'H3', ST_SetSRID(ST_MakePoint(158.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-3-25', 'H3', ST_SetSRID(ST_MakePoint(164.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-1', 'H3', ST_SetSRID(ST_MakePoint(20.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-2', 'H3', ST_SetSRID(ST_MakePoint(26.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-3', 'H3', ST_SetSRID(ST_MakePoint(32.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-4', 'H3', ST_SetSRID(ST_MakePoint(38.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-5', 'H3', ST_SetSRID(ST_MakePoint(44.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-6', 'H3', ST_SetSRID(ST_MakePoint(50.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-7', 'H3', ST_SetSRID(ST_MakePoint(56.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-8', 'H3', ST_SetSRID(ST_MakePoint(62.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-9', 'H3', ST_SetSRID(ST_MakePoint(68.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-10', 'H3', ST_SetSRID(ST_MakePoint(74.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-11', 'H3', ST_SetSRID(ST_MakePoint(80.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-12', 'H3', ST_SetSRID(ST_MakePoint(86.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-13', 'H3', ST_SetSRID(ST_MakePoint(92.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-14', 'H3', ST_SetSRID(ST_MakePoint(98.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-15', 'H3', ST_SetSRID(ST_MakePoint(104.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-16', 'H3', ST_SetSRID(ST_MakePoint(110.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-17', 'H3', ST_SetSRID(ST_MakePoint(116.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-18', 'H3', ST_SetSRID(ST_MakePoint(122.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-19', 'H3', ST_SetSRID(ST_MakePoint(128.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-20', 'H3', ST_SetSRID(ST_MakePoint(134.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-21', 'H3', ST_SetSRID(ST_MakePoint(140.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-22', 'H3', ST_SetSRID(ST_MakePoint(146.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-23', 'H3', ST_SetSRID(ST_MakePoint(152.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-24', 'H3', ST_SetSRID(ST_MakePoint(158.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-4-25', 'H3', ST_SetSRID(ST_MakePoint(164.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-1', 'H3', ST_SetSRID(ST_MakePoint(20.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-2', 'H3', ST_SetSRID(ST_MakePoint(26.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-3', 'H3', ST_SetSRID(ST_MakePoint(32.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-4', 'H3', ST_SetSRID(ST_MakePoint(38.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-5', 'H3', ST_SetSRID(ST_MakePoint(44.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-6', 'H3', ST_SetSRID(ST_MakePoint(50.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-7', 'H3', ST_SetSRID(ST_MakePoint(56.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-8', 'H3', ST_SetSRID(ST_MakePoint(62.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-9', 'H3', ST_SetSRID(ST_MakePoint(68.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-10', 'H3', ST_SetSRID(ST_MakePoint(74.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-11', 'H3', ST_SetSRID(ST_MakePoint(80.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-12', 'H3', ST_SetSRID(ST_MakePoint(86.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-13', 'H3', ST_SetSRID(ST_MakePoint(92.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-14', 'H3', ST_SetSRID(ST_MakePoint(98.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-15', 'H3', ST_SetSRID(ST_MakePoint(104.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-16', 'H3', ST_SetSRID(ST_MakePoint(110.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-17', 'H3', ST_SetSRID(ST_MakePoint(116.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-18', 'H3', ST_SetSRID(ST_MakePoint(122.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-19', 'H3', ST_SetSRID(ST_MakePoint(128.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-20', 'H3', ST_SetSRID(ST_MakePoint(134.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-21', 'H3', ST_SetSRID(ST_MakePoint(140.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-22', 'H3', ST_SetSRID(ST_MakePoint(146.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-23', 'H3', ST_SetSRID(ST_MakePoint(152.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-24', 'H3', ST_SetSRID(ST_MakePoint(158.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-5-25', 'H3', ST_SetSRID(ST_MakePoint(164.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-1', 'H3', ST_SetSRID(ST_MakePoint(20.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-2', 'H3', ST_SetSRID(ST_MakePoint(26.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-3', 'H3', ST_SetSRID(ST_MakePoint(32.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-4', 'H3', ST_SetSRID(ST_MakePoint(38.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-5', 'H3', ST_SetSRID(ST_MakePoint(44.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-6', 'H3', ST_SetSRID(ST_MakePoint(50.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-7', 'H3', ST_SetSRID(ST_MakePoint(56.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-8', 'H3', ST_SetSRID(ST_MakePoint(62.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-9', 'H3', ST_SetSRID(ST_MakePoint(68.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-10', 'H3', ST_SetSRID(ST_MakePoint(74.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-11', 'H3', ST_SetSRID(ST_MakePoint(80.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-12', 'H3', ST_SetSRID(ST_MakePoint(86.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-13', 'H3', ST_SetSRID(ST_MakePoint(92.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-14', 'H3', ST_SetSRID(ST_MakePoint(98.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-15', 'H3', ST_SetSRID(ST_MakePoint(104.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-16', 'H3', ST_SetSRID(ST_MakePoint(110.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-17', 'H3', ST_SetSRID(ST_MakePoint(116.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-18', 'H3', ST_SetSRID(ST_MakePoint(122.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-19', 'H3', ST_SetSRID(ST_MakePoint(128.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-20', 'H3', ST_SetSRID(ST_MakePoint(134.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-21', 'H3', ST_SetSRID(ST_MakePoint(140.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-22', 'H3', ST_SetSRID(ST_MakePoint(146.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-23', 'H3', ST_SetSRID(ST_MakePoint(152.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-24', 'H3', ST_SetSRID(ST_MakePoint(158.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-6-25', 'H3', ST_SetSRID(ST_MakePoint(164.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-1', 'H3', ST_SetSRID(ST_MakePoint(20.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-2', 'H3', ST_SetSRID(ST_MakePoint(26.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-3', 'H3', ST_SetSRID(ST_MakePoint(32.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-4', 'H3', ST_SetSRID(ST_MakePoint(38.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-5', 'H3', ST_SetSRID(ST_MakePoint(44.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-6', 'H3', ST_SetSRID(ST_MakePoint(50.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-7', 'H3', ST_SetSRID(ST_MakePoint(56.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-8', 'H3', ST_SetSRID(ST_MakePoint(62.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-9', 'H3', ST_SetSRID(ST_MakePoint(68.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-10', 'H3', ST_SetSRID(ST_MakePoint(74.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-11', 'H3', ST_SetSRID(ST_MakePoint(80.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-12', 'H3', ST_SetSRID(ST_MakePoint(86.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-13', 'H3', ST_SetSRID(ST_MakePoint(92.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-14', 'H3', ST_SetSRID(ST_MakePoint(98.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-15', 'H3', ST_SetSRID(ST_MakePoint(104.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-16', 'H3', ST_SetSRID(ST_MakePoint(110.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-17', 'H3', ST_SetSRID(ST_MakePoint(116.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-18', 'H3', ST_SetSRID(ST_MakePoint(122.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-19', 'H3', ST_SetSRID(ST_MakePoint(128.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-20', 'H3', ST_SetSRID(ST_MakePoint(134.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-21', 'H3', ST_SetSRID(ST_MakePoint(140.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-22', 'H3', ST_SetSRID(ST_MakePoint(146.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-23', 'H3', ST_SetSRID(ST_MakePoint(152.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-24', 'H3', ST_SetSRID(ST_MakePoint(158.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false),
    ('H3-RT-7-25', 'H3', ST_SetSRID(ST_MakePoint(164.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H3'), false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H4: 실측 채널 7개
DELETE FROM trench WHERE hall_id = 'H4' AND is_assumed;
INSERT INTO trench (id, hall_id, geom, supply_power, supply_water, supply_air, supply_network, supply_gas, is_assumed)
VALUES
    ('H4-RT-1-1', 'H4', ST_SetSRID(ST_MakePoint(20.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-2', 'H4', ST_SetSRID(ST_MakePoint(26.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-3', 'H4', ST_SetSRID(ST_MakePoint(32.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-4', 'H4', ST_SetSRID(ST_MakePoint(38.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-5', 'H4', ST_SetSRID(ST_MakePoint(44.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-6', 'H4', ST_SetSRID(ST_MakePoint(50.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-7', 'H4', ST_SetSRID(ST_MakePoint(56.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-8', 'H4', ST_SetSRID(ST_MakePoint(62.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-9', 'H4', ST_SetSRID(ST_MakePoint(68.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-10', 'H4', ST_SetSRID(ST_MakePoint(74.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-11', 'H4', ST_SetSRID(ST_MakePoint(80.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-12', 'H4', ST_SetSRID(ST_MakePoint(86.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-13', 'H4', ST_SetSRID(ST_MakePoint(92.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-14', 'H4', ST_SetSRID(ST_MakePoint(98.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-15', 'H4', ST_SetSRID(ST_MakePoint(104.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-16', 'H4', ST_SetSRID(ST_MakePoint(110.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-17', 'H4', ST_SetSRID(ST_MakePoint(116.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-18', 'H4', ST_SetSRID(ST_MakePoint(122.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-19', 'H4', ST_SetSRID(ST_MakePoint(128.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-20', 'H4', ST_SetSRID(ST_MakePoint(134.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-21', 'H4', ST_SetSRID(ST_MakePoint(140.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-22', 'H4', ST_SetSRID(ST_MakePoint(146.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-23', 'H4', ST_SetSRID(ST_MakePoint(152.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-24', 'H4', ST_SetSRID(ST_MakePoint(158.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-1-25', 'H4', ST_SetSRID(ST_MakePoint(164.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-1', 'H4', ST_SetSRID(ST_MakePoint(20.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-2', 'H4', ST_SetSRID(ST_MakePoint(26.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-3', 'H4', ST_SetSRID(ST_MakePoint(32.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-4', 'H4', ST_SetSRID(ST_MakePoint(38.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-5', 'H4', ST_SetSRID(ST_MakePoint(44.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-6', 'H4', ST_SetSRID(ST_MakePoint(50.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-7', 'H4', ST_SetSRID(ST_MakePoint(56.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-8', 'H4', ST_SetSRID(ST_MakePoint(62.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-9', 'H4', ST_SetSRID(ST_MakePoint(68.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-10', 'H4', ST_SetSRID(ST_MakePoint(74.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-11', 'H4', ST_SetSRID(ST_MakePoint(80.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-12', 'H4', ST_SetSRID(ST_MakePoint(86.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-13', 'H4', ST_SetSRID(ST_MakePoint(92.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-14', 'H4', ST_SetSRID(ST_MakePoint(98.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-15', 'H4', ST_SetSRID(ST_MakePoint(104.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-16', 'H4', ST_SetSRID(ST_MakePoint(110.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-17', 'H4', ST_SetSRID(ST_MakePoint(116.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-18', 'H4', ST_SetSRID(ST_MakePoint(122.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-19', 'H4', ST_SetSRID(ST_MakePoint(128.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-20', 'H4', ST_SetSRID(ST_MakePoint(134.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-21', 'H4', ST_SetSRID(ST_MakePoint(140.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-22', 'H4', ST_SetSRID(ST_MakePoint(146.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-23', 'H4', ST_SetSRID(ST_MakePoint(152.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-24', 'H4', ST_SetSRID(ST_MakePoint(158.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-2-25', 'H4', ST_SetSRID(ST_MakePoint(164.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-1', 'H4', ST_SetSRID(ST_MakePoint(20.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-2', 'H4', ST_SetSRID(ST_MakePoint(26.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-3', 'H4', ST_SetSRID(ST_MakePoint(32.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-4', 'H4', ST_SetSRID(ST_MakePoint(38.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-5', 'H4', ST_SetSRID(ST_MakePoint(44.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-6', 'H4', ST_SetSRID(ST_MakePoint(50.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-7', 'H4', ST_SetSRID(ST_MakePoint(56.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-8', 'H4', ST_SetSRID(ST_MakePoint(62.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-9', 'H4', ST_SetSRID(ST_MakePoint(68.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-10', 'H4', ST_SetSRID(ST_MakePoint(74.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-11', 'H4', ST_SetSRID(ST_MakePoint(80.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-12', 'H4', ST_SetSRID(ST_MakePoint(86.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-13', 'H4', ST_SetSRID(ST_MakePoint(92.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-14', 'H4', ST_SetSRID(ST_MakePoint(98.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-15', 'H4', ST_SetSRID(ST_MakePoint(104.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-16', 'H4', ST_SetSRID(ST_MakePoint(110.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-17', 'H4', ST_SetSRID(ST_MakePoint(116.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-18', 'H4', ST_SetSRID(ST_MakePoint(122.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-19', 'H4', ST_SetSRID(ST_MakePoint(128.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-20', 'H4', ST_SetSRID(ST_MakePoint(134.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-21', 'H4', ST_SetSRID(ST_MakePoint(140.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-22', 'H4', ST_SetSRID(ST_MakePoint(146.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-23', 'H4', ST_SetSRID(ST_MakePoint(152.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-24', 'H4', ST_SetSRID(ST_MakePoint(158.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-3-25', 'H4', ST_SetSRID(ST_MakePoint(164.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-1', 'H4', ST_SetSRID(ST_MakePoint(20.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-2', 'H4', ST_SetSRID(ST_MakePoint(26.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-3', 'H4', ST_SetSRID(ST_MakePoint(32.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-4', 'H4', ST_SetSRID(ST_MakePoint(38.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-5', 'H4', ST_SetSRID(ST_MakePoint(44.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-6', 'H4', ST_SetSRID(ST_MakePoint(50.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-7', 'H4', ST_SetSRID(ST_MakePoint(56.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-8', 'H4', ST_SetSRID(ST_MakePoint(62.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-9', 'H4', ST_SetSRID(ST_MakePoint(68.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-10', 'H4', ST_SetSRID(ST_MakePoint(74.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-11', 'H4', ST_SetSRID(ST_MakePoint(80.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-12', 'H4', ST_SetSRID(ST_MakePoint(86.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-13', 'H4', ST_SetSRID(ST_MakePoint(92.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-14', 'H4', ST_SetSRID(ST_MakePoint(98.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-15', 'H4', ST_SetSRID(ST_MakePoint(104.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-16', 'H4', ST_SetSRID(ST_MakePoint(110.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-17', 'H4', ST_SetSRID(ST_MakePoint(116.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-18', 'H4', ST_SetSRID(ST_MakePoint(122.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-19', 'H4', ST_SetSRID(ST_MakePoint(128.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-20', 'H4', ST_SetSRID(ST_MakePoint(134.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-21', 'H4', ST_SetSRID(ST_MakePoint(140.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-22', 'H4', ST_SetSRID(ST_MakePoint(146.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-23', 'H4', ST_SetSRID(ST_MakePoint(152.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-24', 'H4', ST_SetSRID(ST_MakePoint(158.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-4-25', 'H4', ST_SetSRID(ST_MakePoint(164.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-1', 'H4', ST_SetSRID(ST_MakePoint(20.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-2', 'H4', ST_SetSRID(ST_MakePoint(26.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-3', 'H4', ST_SetSRID(ST_MakePoint(32.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-4', 'H4', ST_SetSRID(ST_MakePoint(38.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-5', 'H4', ST_SetSRID(ST_MakePoint(44.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-6', 'H4', ST_SetSRID(ST_MakePoint(50.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-7', 'H4', ST_SetSRID(ST_MakePoint(56.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-8', 'H4', ST_SetSRID(ST_MakePoint(62.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-9', 'H4', ST_SetSRID(ST_MakePoint(68.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-10', 'H4', ST_SetSRID(ST_MakePoint(74.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-11', 'H4', ST_SetSRID(ST_MakePoint(80.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-12', 'H4', ST_SetSRID(ST_MakePoint(86.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-13', 'H4', ST_SetSRID(ST_MakePoint(92.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-14', 'H4', ST_SetSRID(ST_MakePoint(98.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-15', 'H4', ST_SetSRID(ST_MakePoint(104.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-16', 'H4', ST_SetSRID(ST_MakePoint(110.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-17', 'H4', ST_SetSRID(ST_MakePoint(116.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-18', 'H4', ST_SetSRID(ST_MakePoint(122.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-19', 'H4', ST_SetSRID(ST_MakePoint(128.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-20', 'H4', ST_SetSRID(ST_MakePoint(134.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-21', 'H4', ST_SetSRID(ST_MakePoint(140.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-22', 'H4', ST_SetSRID(ST_MakePoint(146.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-23', 'H4', ST_SetSRID(ST_MakePoint(152.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-24', 'H4', ST_SetSRID(ST_MakePoint(158.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-5-25', 'H4', ST_SetSRID(ST_MakePoint(164.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-1', 'H4', ST_SetSRID(ST_MakePoint(20.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-2', 'H4', ST_SetSRID(ST_MakePoint(26.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-3', 'H4', ST_SetSRID(ST_MakePoint(32.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-4', 'H4', ST_SetSRID(ST_MakePoint(38.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-5', 'H4', ST_SetSRID(ST_MakePoint(44.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-6', 'H4', ST_SetSRID(ST_MakePoint(50.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-7', 'H4', ST_SetSRID(ST_MakePoint(56.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-8', 'H4', ST_SetSRID(ST_MakePoint(62.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-9', 'H4', ST_SetSRID(ST_MakePoint(68.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-10', 'H4', ST_SetSRID(ST_MakePoint(74.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-11', 'H4', ST_SetSRID(ST_MakePoint(80.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-12', 'H4', ST_SetSRID(ST_MakePoint(86.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-13', 'H4', ST_SetSRID(ST_MakePoint(92.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-14', 'H4', ST_SetSRID(ST_MakePoint(98.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-15', 'H4', ST_SetSRID(ST_MakePoint(104.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-16', 'H4', ST_SetSRID(ST_MakePoint(110.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-17', 'H4', ST_SetSRID(ST_MakePoint(116.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-18', 'H4', ST_SetSRID(ST_MakePoint(122.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-19', 'H4', ST_SetSRID(ST_MakePoint(128.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-20', 'H4', ST_SetSRID(ST_MakePoint(134.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-21', 'H4', ST_SetSRID(ST_MakePoint(140.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-22', 'H4', ST_SetSRID(ST_MakePoint(146.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-23', 'H4', ST_SetSRID(ST_MakePoint(152.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-24', 'H4', ST_SetSRID(ST_MakePoint(158.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-6-25', 'H4', ST_SetSRID(ST_MakePoint(164.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-1', 'H4', ST_SetSRID(ST_MakePoint(20.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-2', 'H4', ST_SetSRID(ST_MakePoint(26.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-3', 'H4', ST_SetSRID(ST_MakePoint(32.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-4', 'H4', ST_SetSRID(ST_MakePoint(38.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-5', 'H4', ST_SetSRID(ST_MakePoint(44.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-6', 'H4', ST_SetSRID(ST_MakePoint(50.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-7', 'H4', ST_SetSRID(ST_MakePoint(56.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-8', 'H4', ST_SetSRID(ST_MakePoint(62.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-9', 'H4', ST_SetSRID(ST_MakePoint(68.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-10', 'H4', ST_SetSRID(ST_MakePoint(74.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-11', 'H4', ST_SetSRID(ST_MakePoint(80.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-12', 'H4', ST_SetSRID(ST_MakePoint(86.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-13', 'H4', ST_SetSRID(ST_MakePoint(92.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-14', 'H4', ST_SetSRID(ST_MakePoint(98.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-15', 'H4', ST_SetSRID(ST_MakePoint(104.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-16', 'H4', ST_SetSRID(ST_MakePoint(110.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-17', 'H4', ST_SetSRID(ST_MakePoint(116.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-18', 'H4', ST_SetSRID(ST_MakePoint(122.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-19', 'H4', ST_SetSRID(ST_MakePoint(128.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-20', 'H4', ST_SetSRID(ST_MakePoint(134.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-21', 'H4', ST_SetSRID(ST_MakePoint(140.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-22', 'H4', ST_SetSRID(ST_MakePoint(146.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-23', 'H4', ST_SetSRID(ST_MakePoint(152.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-24', 'H4', ST_SetSRID(ST_MakePoint(158.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false),
    ('H4-RT-7-25', 'H4', ST_SetSRID(ST_MakePoint(164.64, 57.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H4'), false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H5: 실측 채널 7개
DELETE FROM trench WHERE hall_id = 'H5' AND is_assumed;
INSERT INTO trench (id, hall_id, geom, supply_power, supply_water, supply_air, supply_network, supply_gas, is_assumed)
VALUES
    ('H5-RT-1-1', 'H5', ST_SetSRID(ST_MakePoint(20.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-2', 'H5', ST_SetSRID(ST_MakePoint(26.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-3', 'H5', ST_SetSRID(ST_MakePoint(32.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-4', 'H5', ST_SetSRID(ST_MakePoint(38.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-5', 'H5', ST_SetSRID(ST_MakePoint(44.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-6', 'H5', ST_SetSRID(ST_MakePoint(50.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-7', 'H5', ST_SetSRID(ST_MakePoint(56.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-8', 'H5', ST_SetSRID(ST_MakePoint(62.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-9', 'H5', ST_SetSRID(ST_MakePoint(68.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-10', 'H5', ST_SetSRID(ST_MakePoint(74.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-11', 'H5', ST_SetSRID(ST_MakePoint(80.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-12', 'H5', ST_SetSRID(ST_MakePoint(86.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-13', 'H5', ST_SetSRID(ST_MakePoint(92.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-14', 'H5', ST_SetSRID(ST_MakePoint(98.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-15', 'H5', ST_SetSRID(ST_MakePoint(104.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-16', 'H5', ST_SetSRID(ST_MakePoint(110.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-17', 'H5', ST_SetSRID(ST_MakePoint(116.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-18', 'H5', ST_SetSRID(ST_MakePoint(122.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-19', 'H5', ST_SetSRID(ST_MakePoint(128.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-20', 'H5', ST_SetSRID(ST_MakePoint(134.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-21', 'H5', ST_SetSRID(ST_MakePoint(140.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-22', 'H5', ST_SetSRID(ST_MakePoint(146.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-23', 'H5', ST_SetSRID(ST_MakePoint(152.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-24', 'H5', ST_SetSRID(ST_MakePoint(158.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-1-25', 'H5', ST_SetSRID(ST_MakePoint(164.64, 3.20), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-1', 'H5', ST_SetSRID(ST_MakePoint(20.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-2', 'H5', ST_SetSRID(ST_MakePoint(26.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-3', 'H5', ST_SetSRID(ST_MakePoint(32.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-4', 'H5', ST_SetSRID(ST_MakePoint(38.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-5', 'H5', ST_SetSRID(ST_MakePoint(44.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-6', 'H5', ST_SetSRID(ST_MakePoint(50.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-7', 'H5', ST_SetSRID(ST_MakePoint(56.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-8', 'H5', ST_SetSRID(ST_MakePoint(62.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-9', 'H5', ST_SetSRID(ST_MakePoint(68.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-10', 'H5', ST_SetSRID(ST_MakePoint(74.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-11', 'H5', ST_SetSRID(ST_MakePoint(80.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-12', 'H5', ST_SetSRID(ST_MakePoint(86.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-13', 'H5', ST_SetSRID(ST_MakePoint(92.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-14', 'H5', ST_SetSRID(ST_MakePoint(98.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-15', 'H5', ST_SetSRID(ST_MakePoint(104.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-16', 'H5', ST_SetSRID(ST_MakePoint(110.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-17', 'H5', ST_SetSRID(ST_MakePoint(116.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-18', 'H5', ST_SetSRID(ST_MakePoint(122.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-19', 'H5', ST_SetSRID(ST_MakePoint(128.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-20', 'H5', ST_SetSRID(ST_MakePoint(134.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-21', 'H5', ST_SetSRID(ST_MakePoint(140.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-22', 'H5', ST_SetSRID(ST_MakePoint(146.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-23', 'H5', ST_SetSRID(ST_MakePoint(152.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-24', 'H5', ST_SetSRID(ST_MakePoint(158.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-2-25', 'H5', ST_SetSRID(ST_MakePoint(164.64, 12.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-1', 'H5', ST_SetSRID(ST_MakePoint(20.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-2', 'H5', ST_SetSRID(ST_MakePoint(26.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-3', 'H5', ST_SetSRID(ST_MakePoint(32.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-4', 'H5', ST_SetSRID(ST_MakePoint(38.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-5', 'H5', ST_SetSRID(ST_MakePoint(44.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-6', 'H5', ST_SetSRID(ST_MakePoint(50.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-7', 'H5', ST_SetSRID(ST_MakePoint(56.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-8', 'H5', ST_SetSRID(ST_MakePoint(62.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-9', 'H5', ST_SetSRID(ST_MakePoint(68.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-10', 'H5', ST_SetSRID(ST_MakePoint(74.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-11', 'H5', ST_SetSRID(ST_MakePoint(80.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-12', 'H5', ST_SetSRID(ST_MakePoint(86.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-13', 'H5', ST_SetSRID(ST_MakePoint(92.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-14', 'H5', ST_SetSRID(ST_MakePoint(98.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-15', 'H5', ST_SetSRID(ST_MakePoint(104.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-16', 'H5', ST_SetSRID(ST_MakePoint(110.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-17', 'H5', ST_SetSRID(ST_MakePoint(116.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-18', 'H5', ST_SetSRID(ST_MakePoint(122.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-19', 'H5', ST_SetSRID(ST_MakePoint(128.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-20', 'H5', ST_SetSRID(ST_MakePoint(134.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-21', 'H5', ST_SetSRID(ST_MakePoint(140.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-22', 'H5', ST_SetSRID(ST_MakePoint(146.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-23', 'H5', ST_SetSRID(ST_MakePoint(152.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-24', 'H5', ST_SetSRID(ST_MakePoint(158.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-3-25', 'H5', ST_SetSRID(ST_MakePoint(164.64, 21.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-1', 'H5', ST_SetSRID(ST_MakePoint(20.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-2', 'H5', ST_SetSRID(ST_MakePoint(26.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-3', 'H5', ST_SetSRID(ST_MakePoint(32.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-4', 'H5', ST_SetSRID(ST_MakePoint(38.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-5', 'H5', ST_SetSRID(ST_MakePoint(44.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-6', 'H5', ST_SetSRID(ST_MakePoint(50.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-7', 'H5', ST_SetSRID(ST_MakePoint(56.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-8', 'H5', ST_SetSRID(ST_MakePoint(62.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-9', 'H5', ST_SetSRID(ST_MakePoint(68.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-10', 'H5', ST_SetSRID(ST_MakePoint(74.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-11', 'H5', ST_SetSRID(ST_MakePoint(80.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-12', 'H5', ST_SetSRID(ST_MakePoint(86.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-13', 'H5', ST_SetSRID(ST_MakePoint(92.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-14', 'H5', ST_SetSRID(ST_MakePoint(98.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-15', 'H5', ST_SetSRID(ST_MakePoint(104.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-16', 'H5', ST_SetSRID(ST_MakePoint(110.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-17', 'H5', ST_SetSRID(ST_MakePoint(116.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-18', 'H5', ST_SetSRID(ST_MakePoint(122.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-19', 'H5', ST_SetSRID(ST_MakePoint(128.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-20', 'H5', ST_SetSRID(ST_MakePoint(134.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-21', 'H5', ST_SetSRID(ST_MakePoint(140.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-22', 'H5', ST_SetSRID(ST_MakePoint(146.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-23', 'H5', ST_SetSRID(ST_MakePoint(152.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-24', 'H5', ST_SetSRID(ST_MakePoint(158.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-4-25', 'H5', ST_SetSRID(ST_MakePoint(164.64, 30.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-1', 'H5', ST_SetSRID(ST_MakePoint(20.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-2', 'H5', ST_SetSRID(ST_MakePoint(26.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-3', 'H5', ST_SetSRID(ST_MakePoint(32.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-4', 'H5', ST_SetSRID(ST_MakePoint(38.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-5', 'H5', ST_SetSRID(ST_MakePoint(44.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-6', 'H5', ST_SetSRID(ST_MakePoint(50.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-7', 'H5', ST_SetSRID(ST_MakePoint(56.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-8', 'H5', ST_SetSRID(ST_MakePoint(62.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-9', 'H5', ST_SetSRID(ST_MakePoint(68.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-10', 'H5', ST_SetSRID(ST_MakePoint(74.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-11', 'H5', ST_SetSRID(ST_MakePoint(80.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-12', 'H5', ST_SetSRID(ST_MakePoint(86.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-13', 'H5', ST_SetSRID(ST_MakePoint(92.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-14', 'H5', ST_SetSRID(ST_MakePoint(98.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-15', 'H5', ST_SetSRID(ST_MakePoint(104.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-16', 'H5', ST_SetSRID(ST_MakePoint(110.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-17', 'H5', ST_SetSRID(ST_MakePoint(116.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-18', 'H5', ST_SetSRID(ST_MakePoint(122.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-19', 'H5', ST_SetSRID(ST_MakePoint(128.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-20', 'H5', ST_SetSRID(ST_MakePoint(134.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-21', 'H5', ST_SetSRID(ST_MakePoint(140.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-22', 'H5', ST_SetSRID(ST_MakePoint(146.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-23', 'H5', ST_SetSRID(ST_MakePoint(152.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-24', 'H5', ST_SetSRID(ST_MakePoint(158.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-5-25', 'H5', ST_SetSRID(ST_MakePoint(164.64, 39.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-1', 'H5', ST_SetSRID(ST_MakePoint(20.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-2', 'H5', ST_SetSRID(ST_MakePoint(26.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-3', 'H5', ST_SetSRID(ST_MakePoint(32.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-4', 'H5', ST_SetSRID(ST_MakePoint(38.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-5', 'H5', ST_SetSRID(ST_MakePoint(44.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-6', 'H5', ST_SetSRID(ST_MakePoint(50.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-7', 'H5', ST_SetSRID(ST_MakePoint(56.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-8', 'H5', ST_SetSRID(ST_MakePoint(62.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-9', 'H5', ST_SetSRID(ST_MakePoint(68.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-10', 'H5', ST_SetSRID(ST_MakePoint(74.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-11', 'H5', ST_SetSRID(ST_MakePoint(80.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-12', 'H5', ST_SetSRID(ST_MakePoint(86.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-13', 'H5', ST_SetSRID(ST_MakePoint(92.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-14', 'H5', ST_SetSRID(ST_MakePoint(98.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-15', 'H5', ST_SetSRID(ST_MakePoint(104.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-16', 'H5', ST_SetSRID(ST_MakePoint(110.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-17', 'H5', ST_SetSRID(ST_MakePoint(116.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-18', 'H5', ST_SetSRID(ST_MakePoint(122.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-19', 'H5', ST_SetSRID(ST_MakePoint(128.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-20', 'H5', ST_SetSRID(ST_MakePoint(134.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-21', 'H5', ST_SetSRID(ST_MakePoint(140.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-22', 'H5', ST_SetSRID(ST_MakePoint(146.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-23', 'H5', ST_SetSRID(ST_MakePoint(152.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-24', 'H5', ST_SetSRID(ST_MakePoint(158.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-6-25', 'H5', ST_SetSRID(ST_MakePoint(164.64, 48.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-1', 'H5', ST_SetSRID(ST_MakePoint(22.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-2', 'H5', ST_SetSRID(ST_MakePoint(28.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-3', 'H5', ST_SetSRID(ST_MakePoint(34.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-4', 'H5', ST_SetSRID(ST_MakePoint(40.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-5', 'H5', ST_SetSRID(ST_MakePoint(46.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-6', 'H5', ST_SetSRID(ST_MakePoint(52.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-7', 'H5', ST_SetSRID(ST_MakePoint(58.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-8', 'H5', ST_SetSRID(ST_MakePoint(64.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-9', 'H5', ST_SetSRID(ST_MakePoint(70.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-10', 'H5', ST_SetSRID(ST_MakePoint(76.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-11', 'H5', ST_SetSRID(ST_MakePoint(82.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-12', 'H5', ST_SetSRID(ST_MakePoint(88.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-13', 'H5', ST_SetSRID(ST_MakePoint(94.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-14', 'H5', ST_SetSRID(ST_MakePoint(100.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-15', 'H5', ST_SetSRID(ST_MakePoint(106.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-16', 'H5', ST_SetSRID(ST_MakePoint(112.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-17', 'H5', ST_SetSRID(ST_MakePoint(118.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-18', 'H5', ST_SetSRID(ST_MakePoint(124.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-19', 'H5', ST_SetSRID(ST_MakePoint(130.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-20', 'H5', ST_SetSRID(ST_MakePoint(136.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-21', 'H5', ST_SetSRID(ST_MakePoint(142.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-22', 'H5', ST_SetSRID(ST_MakePoint(148.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-23', 'H5', ST_SetSRID(ST_MakePoint(154.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-24', 'H5', ST_SetSRID(ST_MakePoint(160.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false),
    ('H5-RT-7-25', 'H5', ST_SetSRID(ST_MakePoint(166.14, 57.15), 0), true, true, true, true, (SELECT has_gas FROM hall WHERE id='H5'), false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- ═══ v67_pillar.sql (교정 매핑 재생성) ═══
-- V62: 기둥 실측 시드(hall_pillar) + V61 트렌치 y축 보정 — 자동배치 기둥 회피 근거.
-- 생성기: tools/cad/extract_pillar_seed.py (결정적 재생성). 근거: docs/analysis/cad-extraction.md.
-- K1=CAD 4-COL-H 추출(주석 교차검증), K2 H7~H10=공식 도면 치수 주석(midline 내부 기둥), H6=근거 없음(미시드).

CREATE TABLE IF NOT EXISTS hall_pillar (
    id         varchar(60)       PRIMARY KEY,  -- 예: H1-P-1
    hall_id    varchar(20)       NOT NULL REFERENCES hall(id) ON DELETE CASCADE,
    geom       geometry(Point,0) NOT NULL,     -- 홀 로컬 m(y=0 도면 상단)
    radius_m   numeric(4,2)      NOT NULL,
    is_assumed boolean           NOT NULL DEFAULT false
);
CREATE INDEX IF NOT EXISTS idx_hall_pillar_hall ON hall_pillar (hall_id);

INSERT INTO hall_pillar (id, hall_id, geom, radius_m, is_assumed)
VALUES
    ('H1-P-1', 'H1', ST_SetSRID(ST_MakePoint(8.64, 7.02), 0), 1.25, false),
    ('H1-P-2', 'H1', ST_SetSRID(ST_MakePoint(16.99, 7.02), 0), 1.25, false),
    ('H1-P-3', 'H1', ST_SetSRID(ST_MakePoint(53.64, 61.98), 0), 1.25, false),
    ('H1-P-4', 'H1', ST_SetSRID(ST_MakePoint(116.64, 61.98), 0), 1.25, false),
    ('H1-P-5', 'H1', ST_SetSRID(ST_MakePoint(170.64, 7.67), 0), 1.25, false),
    ('H1-P-6', 'H1', ST_SetSRID(ST_MakePoint(170.64, 16.67), 0), 1.25, false),
    ('H1-P-7', 'H1', ST_SetSRID(ST_MakePoint(170.64, 25.67), 0), 1.25, false),
    ('H1-P-8', 'H1', ST_SetSRID(ST_MakePoint(170.64, 34.67), 0), 1.25, false),
    ('H1-P-9', 'H1', ST_SetSRID(ST_MakePoint(170.64, 43.67), 0), 1.25, false),
    ('H1-P-10', 'H1', ST_SetSRID(ST_MakePoint(170.64, 52.67), 0), 1.25, false),
    ('H1-P-11', 'H1', ST_SetSRID(ST_MakePoint(170.64, 61.67), 0), 1.25, false),
    ('H2-P-1', 'H2', ST_SetSRID(ST_MakePoint(53.64, 61.98), 0), 1.25, false),
    ('H2-P-2', 'H2', ST_SetSRID(ST_MakePoint(116.64, 61.98), 0), 1.25, false),
    ('H2-P-3', 'H2', ST_SetSRID(ST_MakePoint(170.64, 0.77), 0), 1.25, false),
    ('H2-P-4', 'H2', ST_SetSRID(ST_MakePoint(170.64, 7.67), 0), 1.25, false),
    ('H2-P-5', 'H2', ST_SetSRID(ST_MakePoint(170.64, 16.67), 0), 1.25, false),
    ('H2-P-6', 'H2', ST_SetSRID(ST_MakePoint(170.64, 25.67), 0), 1.25, false),
    ('H2-P-7', 'H2', ST_SetSRID(ST_MakePoint(170.64, 34.67), 0), 1.25, false),
    ('H2-P-8', 'H2', ST_SetSRID(ST_MakePoint(170.64, 43.67), 0), 1.25, false),
    ('H2-P-9', 'H2', ST_SetSRID(ST_MakePoint(170.64, 52.67), 0), 1.25, false),
    ('H2-P-10', 'H2', ST_SetSRID(ST_MakePoint(170.64, 61.67), 0), 1.25, false),
    ('H3-P-1', 'H3', ST_SetSRID(ST_MakePoint(53.64, 61.98), 0), 1.25, false),
    ('H3-P-2', 'H3', ST_SetSRID(ST_MakePoint(116.64, 61.98), 0), 1.25, false),
    ('H3-P-3', 'H3', ST_SetSRID(ST_MakePoint(170.64, 0.77), 0), 1.25, false),
    ('H3-P-4', 'H3', ST_SetSRID(ST_MakePoint(170.64, 7.67), 0), 1.25, false),
    ('H3-P-5', 'H3', ST_SetSRID(ST_MakePoint(170.64, 16.67), 0), 1.25, false),
    ('H3-P-6', 'H3', ST_SetSRID(ST_MakePoint(170.64, 25.67), 0), 1.25, false),
    ('H3-P-7', 'H3', ST_SetSRID(ST_MakePoint(170.64, 34.67), 0), 1.25, false),
    ('H3-P-8', 'H3', ST_SetSRID(ST_MakePoint(170.64, 43.67), 0), 1.25, false),
    ('H3-P-9', 'H3', ST_SetSRID(ST_MakePoint(170.64, 52.67), 0), 1.25, false),
    ('H3-P-10', 'H3', ST_SetSRID(ST_MakePoint(170.64, 61.67), 0), 1.25, false),
    ('H4-P-1', 'H4', ST_SetSRID(ST_MakePoint(53.64, 61.98), 0), 1.25, false),
    ('H4-P-2', 'H4', ST_SetSRID(ST_MakePoint(116.64, 61.98), 0), 1.25, false),
    ('H4-P-3', 'H4', ST_SetSRID(ST_MakePoint(170.64, 0.77), 0), 1.25, false),
    ('H4-P-4', 'H4', ST_SetSRID(ST_MakePoint(170.64, 7.67), 0), 1.25, false),
    ('H4-P-5', 'H4', ST_SetSRID(ST_MakePoint(170.64, 16.67), 0), 1.25, false),
    ('H4-P-6', 'H4', ST_SetSRID(ST_MakePoint(170.64, 25.67), 0), 1.25, false),
    ('H4-P-7', 'H4', ST_SetSRID(ST_MakePoint(170.64, 34.67), 0), 1.25, false),
    ('H4-P-8', 'H4', ST_SetSRID(ST_MakePoint(170.64, 43.67), 0), 1.25, false),
    ('H4-P-9', 'H4', ST_SetSRID(ST_MakePoint(170.64, 52.67), 0), 1.25, false),
    ('H4-P-10', 'H4', ST_SetSRID(ST_MakePoint(170.64, 61.67), 0), 1.25, false),
    ('H5-P-1', 'H5', ST_SetSRID(ST_MakePoint(8.64, 52.67), 0), 1.25, false),
    ('H5-P-2', 'H5', ST_SetSRID(ST_MakePoint(8.64, 61.67), 0), 1.25, false),
    ('H5-P-3', 'H5', ST_SetSRID(ST_MakePoint(17.64, 52.67), 0), 1.25, false),
    ('H5-P-4', 'H5', ST_SetSRID(ST_MakePoint(17.64, 61.67), 0), 1.25, false),
    ('H5-P-5', 'H5', ST_SetSRID(ST_MakePoint(26.64, 61.67), 0), 1.25, false),
    ('H5-P-6', 'H5', ST_SetSRID(ST_MakePoint(35.64, 61.67), 0), 1.25, false),
    ('H5-P-7', 'H5', ST_SetSRID(ST_MakePoint(44.64, 61.67), 0), 1.25, false),
    ('H5-P-8', 'H5', ST_SetSRID(ST_MakePoint(53.64, 61.67), 0), 1.25, false),
    ('H5-P-9', 'H5', ST_SetSRID(ST_MakePoint(62.64, 61.67), 0), 1.25, false),
    ('H5-P-10', 'H5', ST_SetSRID(ST_MakePoint(71.64, 61.67), 0), 1.25, false),
    ('H5-P-11', 'H5', ST_SetSRID(ST_MakePoint(76.14, 61.67), 0), 1.25, false),
    ('H5-P-12', 'H5', ST_SetSRID(ST_MakePoint(80.64, 61.67), 0), 1.25, false),
    ('H5-P-13', 'H5', ST_SetSRID(ST_MakePoint(89.64, 61.67), 0), 1.25, false),
    ('H5-P-14', 'H5', ST_SetSRID(ST_MakePoint(98.64, 61.67), 0), 1.25, false),
    ('H5-P-15', 'H5', ST_SetSRID(ST_MakePoint(107.64, 61.67), 0), 1.25, false),
    ('H5-P-16', 'H5', ST_SetSRID(ST_MakePoint(116.64, 62.32), 0), 1.25, false),
    ('H5-P-17', 'H5', ST_SetSRID(ST_MakePoint(125.64, 61.67), 0), 1.25, false),
    ('H5-P-18', 'H5', ST_SetSRID(ST_MakePoint(134.64, 61.67), 0), 1.25, false),
    ('H5-P-19', 'H5', ST_SetSRID(ST_MakePoint(143.64, 61.67), 0), 1.25, false),
    ('H5-P-20', 'H5', ST_SetSRID(ST_MakePoint(152.64, 61.67), 0), 1.25, false),
    ('H5-P-21', 'H5', ST_SetSRID(ST_MakePoint(161.64, 61.67), 0), 1.25, false),
    ('H5-P-22', 'H5', ST_SetSRID(ST_MakePoint(170.64, 0.77), 0), 1.25, false),
    ('H5-P-23', 'H5', ST_SetSRID(ST_MakePoint(170.64, 7.67), 0), 1.25, false),
    ('H5-P-24', 'H5', ST_SetSRID(ST_MakePoint(170.64, 16.67), 0), 1.25, false),
    ('H5-P-25', 'H5', ST_SetSRID(ST_MakePoint(170.64, 25.67), 0), 1.25, false),
    ('H5-P-26', 'H5', ST_SetSRID(ST_MakePoint(170.64, 34.67), 0), 1.25, false),
    ('H5-P-27', 'H5', ST_SetSRID(ST_MakePoint(170.64, 43.67), 0), 1.25, false),
    ('H5-P-28', 'H5', ST_SetSRID(ST_MakePoint(170.64, 52.67), 0), 1.25, false),
    ('H5-P-29', 'H5', ST_SetSRID(ST_MakePoint(170.64, 61.67), 0), 1.25, false),
    ('H7-P-1', 'H7', ST_SetSRID(ST_MakePoint(40.1, 63.0), 0), 1.15, false),
    ('H8-P-1', 'H8', ST_SetSRID(ST_MakePoint(40.1, 63.0), 0), 1.15, false),
    ('H9-P-1', 'H9', ST_SetSRID(ST_MakePoint(48.9, 66.0), 0), 1.15, false),
    ('H10-P-1', 'H10', ST_SetSRID(ST_MakePoint(48.9, 66.0), 0), 1.15, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, radius_m = EXCLUDED.radius_m;

-- ═══ v67_obstacle.sql (교정 매핑 재생성) ═══
-- V63: 벽·계단·엘리베이터 장애물 실측 시드(hall_obstacle) — 자동배치 회피 근거(소유자 지시 2026-07-15).
-- 생성기: tools/cad/extract_obstacle_seed.py (1m 셀 래스터 연결성분 bbox, 결정적 재생성).
-- K1 H1~H5 = CAD 추출. K2 = 장애물 레이어 신뢰 추출 불가(도면 구조 상이) — 미시드(한계, cad-extraction.md).

CREATE TABLE IF NOT EXISTS hall_obstacle (
    id      varchar(60)  PRIMARY KEY,   -- 예: H1-OB-1
    hall_id varchar(20)  NOT NULL REFERENCES hall(id) ON DELETE CASCADE,
    kind    varchar(20)  NOT NULL,      -- stair | elevator | door | wall(부속실·DRYWALL 포함)
    x0 numeric(8,2) NOT NULL, y0 numeric(8,2) NOT NULL,
    x1 numeric(8,2) NOT NULL, y1 numeric(8,2) NOT NULL   -- 홀 로컬 m(y=0 도면 상단)
);
CREATE INDEX IF NOT EXISTS idx_hall_obstacle_hall ON hall_obstacle (hall_id);

INSERT INTO hall_obstacle (id, hall_id, kind, x0, y0, x1, y1)
VALUES
    ('H1-OB-1', 'H1', 'wall', 0.0, 7.0, 19.0, 9.0),
    ('H1-OB-2', 'H1', 'wall', 0.0, 9.0, 1.0, 21.0),
    ('H1-OB-3', 'H1', 'wall', 0.0, 24.0, 1.0, 27.0),
    ('H1-OB-4', 'H1', 'wall', 0.0, 34.0, 1.0, 63.0),
    ('H1-OB-5', 'H1', 'wall', 17.0, 0.0, 19.0, 7.0),
    ('H1-OB-6', 'H1', 'door', 170.0, 0.0, 171.0, 3.0),
    ('H1-OB-7', 'H1', 'wall', 170.0, 6.0, 171.0, 20.0),
    ('H1-OB-8', 'H1', 'wall', 170.0, 22.0, 171.0, 28.0),
    ('H1-OB-9', 'H1', 'door', 170.0, 31.0, 171.0, 49.0),
    ('H1-OB-10', 'H1', 'wall', 170.0, 50.0, 171.0, 54.0),
    ('H1-OB-11', 'H1', 'door', 170.0, 59.0, 171.0, 63.0),
    ('H2-OB-1', 'H2', 'wall', 0.0, 0.0, 1.0, 21.0),
    ('H2-OB-2', 'H2', 'wall', 0.0, 39.0, 1.0, 63.0),
    ('H2-OB-3', 'H2', 'door', 169.0, 0.0, 171.0, 1.0),
    ('H2-OB-4', 'H2', 'door', 170.0, 1.0, 171.0, 2.0),
    ('H2-OB-5', 'H2', 'door', 170.0, 7.0, 171.0, 20.0),
    ('H2-OB-6', 'H2', 'wall', 170.0, 22.0, 171.0, 28.0),
    ('H2-OB-7', 'H2', 'door', 170.0, 31.0, 171.0, 49.0),
    ('H2-OB-8', 'H2', 'wall', 170.0, 50.0, 171.0, 54.0),
    ('H2-OB-9', 'H2', 'door', 170.0, 59.0, 171.0, 63.0),
    ('H3-OB-1', 'H3', 'wall', 0.0, 0.0, 1.0, 21.0),
    ('H3-OB-2', 'H3', 'wall', 0.0, 39.0, 1.0, 63.0),
    ('H3-OB-3', 'H3', 'door', 169.0, 0.0, 171.0, 1.0),
    ('H3-OB-4', 'H3', 'door', 170.0, 1.0, 171.0, 2.0),
    ('H3-OB-5', 'H3', 'door', 170.0, 7.0, 171.0, 28.0),
    ('H3-OB-6', 'H3', 'door', 170.0, 31.0, 171.0, 49.0),
    ('H3-OB-7', 'H3', 'wall', 170.0, 50.0, 171.0, 54.0),
    ('H3-OB-8', 'H3', 'door', 170.0, 59.0, 171.0, 63.0),
    ('H4-OB-1', 'H4', 'wall', 0.0, 0.0, 1.0, 21.0),
    ('H4-OB-2', 'H4', 'wall', 0.0, 39.0, 1.0, 63.0),
    ('H4-OB-3', 'H4', 'door', 169.0, 0.0, 171.0, 1.0),
    ('H4-OB-4', 'H4', 'door', 170.0, 1.0, 171.0, 2.0),
    ('H4-OB-5', 'H4', 'door', 170.0, 7.0, 171.0, 28.0),
    ('H4-OB-6', 'H4', 'door', 170.0, 31.0, 171.0, 49.0),
    ('H4-OB-7', 'H4', 'wall', 170.0, 50.0, 171.0, 54.0),
    ('H4-OB-8', 'H4', 'door', 170.0, 59.0, 171.0, 63.0),
    ('H5-OB-1', 'H5', 'wall', 0.0, 0.0, 1.0, 12.0),
    ('H5-OB-2', 'H5', 'wall', 0.0, 14.0, 1.0, 27.0),
    ('H5-OB-3', 'H5', 'door', 0.0, 34.0, 1.0, 52.0),
    ('H5-OB-4', 'H5', 'door', 0.0, 52.0, 19.0, 54.0),
    ('H5-OB-5', 'H5', 'door', 2.0, 61.0, 9.0, 62.0),
    ('H5-OB-6', 'H5', 'door', 3.0, 62.0, 4.0, 63.0),
    ('H5-OB-7', 'H5', 'door', 5.0, 62.0, 7.0, 63.0),
    ('H5-OB-8', 'H5', 'door', 8.0, 54.0, 9.0, 61.0),
    ('H5-OB-9', 'H5', 'door', 8.0, 62.0, 9.0, 63.0),
    ('H5-OB-10', 'H5', 'door', 17.0, 54.0, 19.0, 61.0),
    ('H5-OB-11', 'H5', 'door', 17.0, 61.0, 65.0, 62.0),
    ('H5-OB-12', 'H5', 'door', 17.0, 62.0, 67.0, 63.0),
    ('H5-OB-13', 'H5', 'wall', 70.0, 61.0, 84.0, 62.0),
    ('H5-OB-14', 'H5', 'wall', 70.0, 62.0, 88.0, 63.0),
    ('H5-OB-15', 'H5', 'wall', 89.0, 61.0, 91.0, 63.0),
    ('H5-OB-16', 'H5', 'door', 96.0, 61.0, 104.0, 62.0),
    ('H5-OB-17', 'H5', 'door', 96.0, 62.0, 105.0, 63.0),
    ('H5-OB-18', 'H5', 'door', 106.0, 61.0, 137.0, 63.0),
    ('H5-OB-19', 'H5', 'wall', 142.0, 61.0, 171.0, 63.0),
    ('H5-OB-20', 'H5', 'door', 169.0, 0.0, 171.0, 1.0),
    ('H5-OB-21', 'H5', 'door', 170.0, 1.0, 171.0, 2.0),
    ('H5-OB-22', 'H5', 'wall', 170.0, 7.0, 171.0, 19.0),
    ('H5-OB-23', 'H5', 'door', 170.0, 22.0, 171.0, 40.0),
    ('H5-OB-24', 'H5', 'wall', 170.0, 41.0, 171.0, 55.0)
ON CONFLICT (id) DO UPDATE SET kind = EXCLUDED.kind,
    x0 = EXCLUDED.x0, y0 = EXCLUDED.y0, x1 = EXCLUDED.x1, y1 = EXCLUDED.y1;

-- ═══ v67_exit.sql (교정 매핑 재생성) ═══
-- V65: 비상구 실좌표 시드 — CAD DOOR 레이어 경계 문 클러스터(±2m 밴드) 변 투영.
-- 생성기: tools/cad/extract_exit_seed.py (결정적 재생성). 근거: docs/analysis/cad-extraction.md.
-- 실측 확보 홀만 가정(is_assumed) 비상구를 대체. 분리 셔터 등 12m 초과 장스팬 제외.

-- H1: 실측 비상구 3개
DELETE FROM hall_exit WHERE hall_id = 'H1' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H1-EXIT-R1', 'H1', ST_SetSRID(ST_MakePoint(171.0, 1.0), 0), 3.0, false),
    ('H1-EXIT-R2', 'H1', ST_SetSRID(ST_MakePoint(171.0, 32.0), 0), 3.0, false),
    ('H1-EXIT-R3', 'H1', ST_SetSRID(ST_MakePoint(171.0, 62.5), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H2: 실측 비상구 4개
DELETE FROM hall_exit WHERE hall_id = 'H2' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H2-EXIT-R1', 'H2', ST_SetSRID(ST_MakePoint(171.0, 1.0), 0), 3.0, false),
    ('H2-EXIT-R2', 'H2', ST_SetSRID(ST_MakePoint(171.0, 19.5), 0), 3.0, false),
    ('H2-EXIT-R3', 'H2', ST_SetSRID(ST_MakePoint(171.0, 32.0), 0), 3.0, false),
    ('H2-EXIT-R4', 'H2', ST_SetSRID(ST_MakePoint(171.0, 62.5), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H3: 실측 비상구 4개
DELETE FROM hall_exit WHERE hall_id = 'H3' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H3-EXIT-R1', 'H3', ST_SetSRID(ST_MakePoint(171.0, 1.0), 0), 3.0, false),
    ('H3-EXIT-R2', 'H3', ST_SetSRID(ST_MakePoint(171.0, 21.0), 0), 3.0, false),
    ('H3-EXIT-R3', 'H3', ST_SetSRID(ST_MakePoint(171.0, 32.0), 0), 3.0, false),
    ('H3-EXIT-R4', 'H3', ST_SetSRID(ST_MakePoint(171.0, 62.5), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H4: 실측 비상구 4개
DELETE FROM hall_exit WHERE hall_id = 'H4' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H4-EXIT-R1', 'H4', ST_SetSRID(ST_MakePoint(171.0, 1.0), 0), 3.0, false),
    ('H4-EXIT-R2', 'H4', ST_SetSRID(ST_MakePoint(171.0, 21.0), 0), 3.0, false),
    ('H4-EXIT-R3', 'H4', ST_SetSRID(ST_MakePoint(171.0, 32.0), 0), 3.0, false),
    ('H4-EXIT-R4', 'H4', ST_SetSRID(ST_MakePoint(171.0, 62.5), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H5: 실측 비상구 5개
DELETE FROM hall_exit WHERE hall_id = 'H5' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H5-EXIT-R1', 'H5', ST_SetSRID(ST_MakePoint(5.5, 63.0), 0), 3.0, false),
    ('H5-EXIT-R2', 'H5', ST_SetSRID(ST_MakePoint(104.0, 63.0), 0), 3.0, false),
    ('H5-EXIT-R3', 'H5', ST_SetSRID(ST_MakePoint(106.5, 63.0), 0), 3.0, false),
    ('H5-EXIT-R4', 'H5', ST_SetSRID(ST_MakePoint(171.0, 1.0), 0), 3.0, false),
    ('H5-EXIT-R5', 'H5', ST_SetSRID(ST_MakePoint(171.0, 23.0), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H6: 실측 비상구 8개
DELETE FROM hall_exit WHERE hall_id = 'H6' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H6-EXIT-R1', 'H6', ST_SetSRID(ST_MakePoint(0.0, 24.5), 0), 3.0, false),
    ('H6-EXIT-R2', 'H6', ST_SetSRID(ST_MakePoint(0.0, 26.5), 0), 3.0, false),
    ('H6-EXIT-R3', 'H6', ST_SetSRID(ST_MakePoint(0.0, 29.0), 0), 3.0, false),
    ('H6-EXIT-R4', 'H6', ST_SetSRID(ST_MakePoint(0.0, 42.5), 0), 3.0, false),
    ('H6-EXIT-R5', 'H6', ST_SetSRID(ST_MakePoint(0.0, 51.5), 0), 3.0, false),
    ('H6-EXIT-R6', 'H6', ST_SetSRID(ST_MakePoint(0.0, 67.5), 0), 3.0, false),
    ('H6-EXIT-R7', 'H6', ST_SetSRID(ST_MakePoint(0.0, 69.5), 0), 3.0, false),
    ('H6-EXIT-R8', 'H6', ST_SetSRID(ST_MakePoint(1.5, 93.0), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H7: 실측 비상구 2개
DELETE FROM hall_exit WHERE hall_id = 'H7' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H7-EXIT-R1', 'H7', ST_SetSRID(ST_MakePoint(90, 31.0), 0), 3.0, false),
    ('H7-EXIT-R2', 'H7', ST_SetSRID(ST_MakePoint(90, 94.5), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H8: 실측 비상구 4개
DELETE FROM hall_exit WHERE hall_id = 'H8' AND is_assumed;
INSERT INTO hall_exit (id, hall_id, geom, clearance_m, is_assumed)
VALUES
    ('H8-EXIT-R1', 'H8', ST_SetSRID(ST_MakePoint(0.5, 0.0), 0), 3.0, false),
    ('H8-EXIT-R2', 'H8', ST_SetSRID(ST_MakePoint(90, 22.0), 0), 3.0, false),
    ('H8-EXIT-R3', 'H8', ST_SetSRID(ST_MakePoint(90, 31.5), 0), 3.0, false),
    ('H8-EXIT-R4', 'H8', ST_SetSRID(ST_MakePoint(90, 94.5), 0), 3.0, false)
ON CONFLICT (id) DO UPDATE SET geom = EXCLUDED.geom, is_assumed = EXCLUDED.is_assumed;

-- H9: 경계 문 0개 — 신뢰 부족, 가정 비상구 유지
-- H10: 경계 문 1개 — 신뢰 부족, 가정 비상구 유지

