This commit is contained in:
2026-07-15 18:33:33 +09:00
parent 6b1583103f
commit f533082537
201 changed files with 19776 additions and 563 deletions
+46
View File
@@ -84,6 +84,52 @@ def run_surface_analysis(
config["precompute"] = list(methods)
manifest = build_all_terrain_models(data, masks, models_dir, config, force=force)
# 3-2. VWorld 지도 및 국가 GIS 벡터 다운로드
_report(90, "download_maps", "VWorld 지도 및 GIS 벡터 데이터 다운로드 중")
try:
# project_root 내의 .prj 파일 탐색 (B03_FileInput/input 또는 root 내 존재할 수 있음)
prj_files = (
list(project_root.glob("**/B03_FileInput/input/*.prj"))
+ list(project_root.glob("*.prj"))
+ list(project_root.glob("**/*.prj"))
)
prj_path = prj_files[0] if prj_files else project_root / "result.prj"
bounds_dict_for_download = {
"x": [float(bounds[0, 0]), float(bounds[0, 1])],
"y": [float(bounds[1, 0]), float(bounds[1, 1])],
"z": [float(bounds[2, 0]), float(bounds[2, 1])],
}
from B04_wf1_Surface.B04_wf1_Surface_Engine_GisVector import download_all_gis_vectors
from B04_wf1_Surface.B04_wf1_Surface_Engine_VWorld import download_vworld_satellite_map
# VWorld 지도 및 GIS 데이터 저장 위치는 B04_wf1_Surface/processed에 보관.
layers = [
{"layer": "Satellite", "ext": "jpeg"},
{"layer": "Hybrid", "ext": "png"},
{"layer": "white", "ext": "png"},
]
for item in layers:
try:
download_vworld_satellite_map(
prj_path,
bounds_dict_for_download,
processed_dir,
layer_name=item["layer"],
ext=item["ext"],
)
except Exception:
pass
try:
download_all_gis_vectors(prj_path, bounds_dict_for_download, processed_dir)
except Exception:
pass
except Exception:
pass
_report(95, "saving", "결과 저장 중")
processed = {