Skip to content

Commit c543dbb

Browse files
authored
Merge pull request #40 from wapaAdmin/add_catchment_labels_to_dss
Add catchment labels to DSS export
2 parents 3c765d6 + 9a059a0 commit c543dbb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

plugin/teksi_wastewater/interlis/interlis_importer_exporter.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,20 @@ def _export_labels_file(
372372
"REPLACE_WS_WITH_WN":True,
373373
},
374374
)
375-
375+
elif export_model == config.MODEL_NAME_DSS:
376+
catch_lyr = TwwLayerManager.layer("catchment_area")
377+
378+
processing.run(
379+
"tww:extractlabels_interlis",
380+
{
381+
"OUTPUT": labels_file_path,
382+
"RESTRICT_TO_SELECTION": limit_to_selection,
383+
"STRUCTURE_VIEW_LAYER": structures_lyr,
384+
"REACH_VIEW_LAYER": reaches_lyr,
385+
"CATCHMENT_LAYER": catch_lyr,
386+
"SCALES": selected_labels_scales_indices,
387+
},
388+
)
376389
elif export_model == config.MODEL_NAME_AG64:
377390
processing.run(
378391
"tww:extractlabels_interlis",

0 commit comments

Comments
 (0)