-
Notifications
You must be signed in to change notification settings - Fork 6
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
include overflows in symbology #166
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@ponceta ready for review |
It looks good, does it works good too? Have you tried it on with a data set? My main concern is the performance, if it's green let's go! |
It works with real data. For a town of 6000 inhabitants, I feel no apparent drop in QGIS. Before: New: For a single wastewater node (i.e. when altering a wastewater structure) New: If the performance drop bothers you I suggest to store |
I'm OK to go with that but I would enjoy a good schema in the doc on how it works and what special structures can be well modelized with that, otherwise it is quite an additionnal complexity in terms of symbology. I think it is mainly on the overflows "new" mechanics and it would be good if one can achieve it without being a wastewater datamanager certified engineer. (otherwise I'm quite excited to see how it looks in real life examples.) |
We improve performance by separating overflow-based and channel-based functionalities (fewer unnecessary left joins)
for more information, see https://pre-commit.ci
The last pushes improve performance and readability. The only change to the original function is that I included the wn's corresponding ws for status. All the overflow specific stuff is moved into a separated function, making it much faster as it left joins the nodes onto an overflow instead of left joining the overflow on the node.
I don't think we need another docs. It only affects symbology on wastewater nodes for those who follow the vsa wiki. The rest won't notice. Here is a real-life example, where there is an separating structure is connected to a combined sewer overflow with retention volume , which in turn has an overflow into the water body. Without the Pull request, the CSO has no usage_current and remains black @ponceta can I merge? |
@cymed @ponceta May be we could include this screenshot in this chapter: https://qgep.github.io/docs/user-guide/How-To/index.html#hydraulic-modeling-of-an-overflow-prank-weir-leapingweir-pump |
There are several situations (i.E. a stormwater composite tank with a preceding separating structure) where a wastewater structure only has overflows as topological connections. In these situations, we should also set a _usage_current dependent on the incoming overflow. This PR includes them in the updating process for wastewater nodes.
See also https://github.com/QGEP/datamodel/pull/225/files