feat: 按样板输出移动采样和WIFI楼宇专题

This commit is contained in:
nixevol
2026-09-21 16:53:41 +08:00
parent 8533814df6
commit d578ffe587
12 changed files with 5297 additions and 3 deletions
+4
View File
@@ -197,6 +197,7 @@ def copy_gis_project_to_market(
include_cell_data=False,
aoi_result=None,
nr_buildings_result=None,
building_themes_result=None,
):
if output_path.exists() and not config.OVERWRITE:
return {
@@ -234,6 +235,9 @@ def copy_gis_project_to_market(
add_market_aoi_layer(root, aoi_result, market.geometry.bounds)
if nr_buildings_result is not None:
add_nr_buildings_layer(root, nr_buildings_result, market.geometry.bounds)
if building_themes_result is not None:
from .building_themes import add_theme_layers
add_theme_layers(root, building_themes_result.get('extent') or market.geometry.bounds)
canvas = root.find(".//mapcanvas[@name='theMapCanvas']")
if canvas is None:
raise ValueError("QGIS 项目模板缺少主画布 theMapCanvas")