Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backporting symbology update queries on interlis import #151

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions qgepqwat2ili/postimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -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();")

Expand Down
Loading