Skip to content

Commit

Permalink
Merge pull request #184 from QGEP/2024-12-11-fix-ara-bauwerk-export-2…
Browse files Browse the repository at this point in the history
…nd-attempt

2024 12 11 fix ara bauwerk export 2nd attempt
  • Loading branch information
ponceta authored Dec 20, 2024
2 parents 53ed91e + 59d05a1 commit d641adc
Show file tree
Hide file tree
Showing 6 changed files with 2,728 additions and 435 deletions.
4 changes: 4 additions & 0 deletions qgepqwat2ili/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,11 @@ def action_do_export():
# try:

# add logger info to check what selection is used
# 18.12.2024
logger.info(f"Start Exporting with selection {str(export_dialog.selected_ids)}")
# logger.info(
# f"Start Exporting with selection {str(export_dialog.selected_ids)} - without automatic extension of neigbouring wwn elements"
# )

if emodel == "VSA_KEK_2019_LV95":
logger.info("Start Exporting VSA_KEK_2019_LV95")
Expand Down
8 changes: 6 additions & 2 deletions qgepqwat2ili/gui/gui_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,18 @@ def logs_next_to_file(self):

@property
def selected_ids(self):
# Variable to choose if automatic selection_extend or not
selection_extend = True

if self.limit_checkbox.isChecked():
ids = []
for struct in self.structures:
ids.append(str(struct["wn_obj_id"]))
for reach in self.reaches:
ids.append(str(reach["obj_id"]))
ids.append(str(reach["rp_from_fk_wastewater_networkelement"]))
ids.append(str(reach["rp_to_fk_wastewater_networkelement"]))
if selection_extend:
ids.append(str(reach["rp_from_fk_wastewater_networkelement"]))
ids.append(str(reach["rp_to_fk_wastewater_networkelement"]))
return ids
else:
return None
Expand Down
Loading

0 comments on commit d641adc

Please sign in to comment.