From 7efbcde1c0379bdeb6309e2735f2ff4b06cab4c5 Mon Sep 17 00:00:00 2001 From: SJiB Date: Fri, 21 Jun 2024 15:19:26 +0200 Subject: [PATCH] backporting symbology update queries see https://github.com/teksi/wastewater/pull/263 --- qgepqwat2ili/postimport.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qgepqwat2ili/postimport.py b/qgepqwat2ili/postimport.py index 2c8f994c..f254a2d8 100644 --- a/qgepqwat2ili/postimport.py +++ b/qgepqwat2ili/postimport.py @@ -41,6 +41,17 @@ def qgep_postimport(): post_session.execute("SELECT qgep_od.wastewater_structure_update_fk_main_wastewater_node('', True);" ) + # add symbology update queries - backporting from tww https://github.com/teksi/wastewater/pull/263 + logger.info("update_wastewater_node_symbology for all datasets - please be patient") + post_session.execute("SELECT qgep_od.update_wastewater_node_symbology(NULL, True);") + logger.info("update_wastewater_node_symbology for all datasets - please be patient") + logger.info("update_wastewater_structure_label for all datasets - please be patient") + post_session.execute("SELECT qgep_od.update_wastewater_structure_label(NULL, True);") + logger.info("update_wastewater_node_symbology for all datasets - please be patient") + logger.info("update_wn_symbology_by_overflow for all datasets - please be patient") + post_session.execute("SELECT qgep_od.update_wn_symbology_by_overflow(NULL, True);") + + logger.info("Refresh materialized views") post_session.execute("SELECT qgep_network.refresh_network_simple();")