-
Notifications
You must be signed in to change notification settings - Fork 5
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
add error message to twwnetwork #457
Conversation
for more information, see https://pre-commit.ci
@cymed Adding message is a great first step, but I still get the error
I think we would have to set a default / replacement value for vertex. |
Here some hints how to create a QGIS point: |
@cymed I added:
This seems to work - and now network following works also: What do you think? |
fallback to main cover xy? |
Perhaps I do not get the problem... If there are missing geometry in reach points, the fallback is the wastewater node (from fk_wastewater_networkelement) and then in a second step the cover. If seen last week an XTF-File with following error from ilivalidator: Haltung_nachHaltungspunktAssocRef should associate 0 to 1 target objects (instead of 2). Obviously there where not 2 reachpoints for each reach... : Es gibt nichts, das es nicht gibt! |
Main cover geometry is also missing in this dataset |
My main point is to have a user friendly feedback that gives clear description of the problem. So maybe we have to review the process and see where we can create an error log and a final message(s) about the problems
So if I understand right the code should only fail if all 3 are missing? |
if there is a reachpoint, a wastewater node, a cover, they should have also x and y. Only cover has Lagegenauigkeit. Fallback to reach point xy is for me a nogo (normally there are several reachpoints with a node, they could have different xy, you would have to test...). |
Do we need a fallback? if we have wastewater nodes without a geometry we will eventually run into problems no matter what |
for more information, see https://pre-commit.ci
Not tested yet with wastewater_node and reach_point |
If we have no reach_point and no wastewater geometry we still get:
|
... so my fix works, we get an error message we can debug |
fix #456