feat: 市场出图改为按图层分步选择

未勾选生成的图层会跳过对应计算,也不会进入成果工程;导入页只列出仍需要的数据源。
This commit is contained in:
nixevol
2026-10-15 15:15:45 +08:00
parent 8ce1b78e58
commit e8c8218d11
11 changed files with 595 additions and 267 deletions
+4
View File
@@ -91,6 +91,7 @@ TRANSPARENT_PIXEL = (0, 0, 0, 0) # 无数据/背景像元颜色,RGBA 中 alph
SELECTED_MARKET_IDS = None
STOP_FILE = None
OUTPUT_LAYERS = None # None 表示全部图层按默认勾选生成。界面传入 {key: {enabled, visible}}。
class TaskCancelled(Exception):
@@ -109,6 +110,9 @@ def apply_settings(settings):
raise ValueError(f"未知出图配置:{key}")
if key == "AOI_CSV":
value = Path(value) if value else None
elif key == "OUTPUT_LAYERS":
from .output_layers import normalize
value = normalize(value)
elif isinstance(globals()[key], Path):
value = Path(value)
globals()[key] = value