Skip to content

Commit

Permalink
Merge pull request #284 from cymed/fix_eizugsgebiet_text_export
Browse files Browse the repository at this point in the history
Only export einzugsgebiet_text for VSA DSS
  • Loading branch information
ponceta authored Jul 16, 2024
2 parents ca872b7 + c4aff85 commit f912465
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions plugin/teksi_wastewater/interlis/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@
TWW_VL_SCHEMA = "tww_vl"
TWW_SYS_SCHEMA = "tww_sys"
ABWASSER_SCHEMA = "pg2ili_abwasser"
TWW_AG_SCHEMA = "tww_ag6496"
MODEL_NAME_VSA_KEK = "VSA_KEK_2020_1_LV95"
MODEL_NAME_SIA405_ABWASSER = "SIA405_ABWASSER_2020_1_LV95"
MODEL_NAME_SIA405_BASE_ABWASSER = "SIA405_Base_Abwasser_1_LV95"
MODEL_NAME_DSS = "DSS_2020_1_LV95"
MODEL_NAME_AG96 = "Genereller_Entwaesserungsplan_AG"
MODEL_NAME_AG64 = "Abwasserkataster_AG_V2_LV95"

TOPIC_NAME_SIA405_ADMINISTRATION = "SIA405_Base_Abwasser_1_LV95.Administration"
TOPIC_NAME_SIA405_ABWASSER = "SIA405_ABWASSER_2020_1_LV95.SIA405_Abwasser"
TOPIC_NAME_DSS = "DSS_2020_1_LV95.Siedlungsentwaesserung"
TOPIC_NAME_KEK = "VSA_KEK_2020_1_LV95.KEK"
TOPIC_NAME_AG96 = "Genereller_Entwaesserungsplan_AG.AG96"
TOPIC_NAME_AG64 = "Abwasserkataster_AG_V2_LV95.AG64"
Original file line number Diff line number Diff line change
Expand Up @@ -3082,8 +3082,10 @@ def _export_label_positions(self):
tid_for_obj_id["vw_tww_reach"][row.t_ili_tid] = row.t_id
for row in self.abwasser_session.query(self.model_classes_interlis.abwasserbauwerk):
tid_for_obj_id["vw_tww_wastewater_structure"][row.t_ili_tid] = row.t_id
for row in self.abwasser_session.query(self.model_classes_interlis.einzugsgebiet):
tid_for_obj_id["catchment_area"][row.t_ili_tid] = row.t_id

if self.model in [config.MODEL_NAME_DSS, config.MODEL_NAME_AG96]:
for row in self.abwasser_session.query(self.model_classes_interlis.einzugsgebiet):
tid_for_obj_id["catchment_area"][row.t_ili_tid] = row.t_id

with open(self.labels_file) as labels_file_handle:
labels = json.load(labels_file_handle)
Expand Down

0 comments on commit f912465

Please sign in to comment.