-
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
reachpoint level recalculated when reachpoint moves #312
Comments
It also recalculates, if I move another vertex of the reach!
But if I change also snaping on the from reachpoint side, also the from level is reset. If I move to to-reachpoint away from the detail geometry and let let it snap on his own reach (shorten the line), the there is a very strange now reachpoint level (could be interpolated from vertex level = 0 and old to-reachpoint-level = 2736.51). |
The problem is that the progression3d_geometry snaps in 3d, which in turn is used in in
So if the rp_level did not change and the progession3d_geometry snapped to a wrong 3d Z coordinate, that Z coordinate is transferred to rp_level and rp_situation3d_geometry. The question is in which cases we want that z matching
I suggest either 1 and 2
or not at all
Does anyone use snapping on 3d nodes to set the z coordinate of reach points? |
This PR implements the second option mentioned in teksi#312 (comment)
In Pully we snap on nodes and construction points to get the 3D information. |
Ok, so we need to switch it (overriding 0 and NaN elevations on start and End points). Suggestion:
In @urskaufmann 's example, the rp_level would not be set to 0 after snapping to the detail_geometry3d_geometry, but it would take the cover elevation (we have to leave it to the user to know which layer he is snapping to - snapping to the wastewater node instead can make sense) @urskaufmann @ponceta are you ok with that? |
Means this: if I want to correct my data, which is "Pickellochmodell" (the reachpoint.level is 492.00) and I draw a detail-geometry, and I now snap the reach to the detail-geometry (no more Pickelloch, the reach ends at the wall of the structure), then the reachpoint.level will be set to the cover.level (496.2)? Without remark or question to the user? I do not agree. |
No. Reachpoint.level was set to cover.level in your test because you snapped an existing reach to to a cover, which is a PointZ that had a Z value. With my change, Z=0 and Z=NaN from the reach geometry are ignored on the new trigger. @ponceta do you snap on PointZ on creation only or also on update? The simplest solution would be to use the reach Z values on insert only and once the reach is created, we control the start and end point elevation from the rp_level fields |
@urskaufmann Can you re-test this with 2024.0.2 pre-release and close if ok? |
There has been no fix so far, #351 was closed |
I don't understand, it should have been reviewed and merged, not closed. |
We usually snap on creation and get the Z coordinates from construction points (Points Z) and wastewater_nodes (Points Z) if they exist. When we want to get the Z when doing an update, we turn on the snapping topology tool which should enable QGIS to gather the Z on update geometrically speaking. We disabled snapping on covers or wastewater structures (2d or curvepolygonz) to avoid problems. |
snapping on the detail-geometry still sets the level to 0.00 Still a no-go! |
This is true with QGEP too. The simplest thing is to set an action on snapping which will check the altitude of the main node of the wastewater. Or snap on a construction pointZ (From GPS) We could set a default altitude from the main wastewater node to the detail geometry egdes altitudes if they are 0? This would enable the snapping on edges (with QGIS topology activated) and nodes of the detail wastewater sturcture : |
Describe the bug
Reach with correct levels (I1 = 2736.51). I move the reachpoint with snapping, then the level is recalculated to 0.00 if there is snapping to a detail geometry or recalculated to the point-level if it snaps to a point (example: the cover).
To Reproduce
Exact steps to reproduce the behavior:
Expected behavior
automatic levels if there exists already a level for a reachpoint will be often not wanted. If the new level is 0, then there shoul be never a change. If there is already a level and the new level changes, then the user should confirm the new level.
Screenshots / data
Start with I1=2736.51
after moving on the detail geometry: level is set to 0.00!
after moving to symbol = node=cover: level is equal to cover level (without confirm!)
If I move without snapping, the level does not change (as expected).
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: