-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Unwanted vertices when tracing #52935
Comments
Hi Julien, Having reread my instructions, I realise that I said follow the green line, when I should have said the red one, however, provided that the digitising in your screenshot was done with Tracing mode enabled then you are demonstrating the same effect (compare with my screenshot below of the corresponding outcome in 3.28.6). It would appear that this is fixed in Master. I will check and confirm. |
Testing on QGIS 3.31.0-Master (371f51e) shows the same behaviour as on 3.28.6 for me. The digitised lines have a vertex at the intersection with the red line even when there wasn't a vertex on the underlying line being traced: |
Sorry I didn't know about tracing mode, so that's why I fail to understand your issue. To sum up, in this video, first traced geometry need the intersection vertex, but in the second one, you would like to remove the vertex because it's not relevant. tracingMode.webmI'm wondering if this is really an issue (I have no opinion) because maybe some users find the actual behavior legit. Actually, we insert all geometries involved in a graph and try to find the shortest path (and so the intersection vertices pop up). @wonder-sk as you were the original developer of this, may I have your opinion? |
I can understand why this is happenning, and agree that the behaviour may be desirable in some circumstances, but is certainly not desirable in others - ironically one of these is tracing on a graph where the presence of a vertex on an intersection implies connectivity, whilst the absence does not, think of an overpass vs crossroads in a road network. The tracing functionality exists to reuse elements of existing features exactly, but this behaviour results in features that no longer align to the source. One option would be to toggle the insertion of extra vertices (presumably whether the trace graph considers intersections without vertices as nodes or not), linking it to the 'Snapping on Intersection' toggle button on the Snapping toolbar. Indeed, the 'Snapping on Intersection' mode would need to be enabled to replicate this behaviour without using the tracing functionality |
I do not really have a strong opinion on this. I think the current behavior is acceptable. I could imagine having a switch to enable/disable tracing on intersections of features when they do not share a vertex (but I would oppose having it linked with "snapping on intersection" which has different meaning - I think this should have a dedicated toggle button) |
@aharfoot @wonder-sk What would be exactly this new option?
Do we agree that you're both proposing solution 1 ? That would mean that in the first case of my video, points would be connected with a straight line because there is no vertex at intersection. |
@troopa81 Yes, I was thinking of option 1, making a clear distinction between the two modes - with or without snapping (and by extension tracing) to intersections where there isn't a vertex. |
@wonder-sk , I disagree that this distinction is different to the "snapping on intersection" mode that currently exists - the two are identical in their behaviour (as observed by the user) in that when the "snapping on intersection" mode is enabled, vertices can be generated in the digitised feature at points of intersection between geometries. The Tracing tool is currently behaving as if the "snapping on intersection" mode is permanently enabled. |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
What is the bug or the crash?
When tracing whilst digitising, vertices will be added to the traced feature where intersections with other features occur, despite no vertex existing on the feature being traced.
This is not desirable, particularly in situations where the absense of a common vertex implies a lack of network connectivity.
If the tracing does not follow intersecting features, then additional vertices should not be added.
Steps to reproduce the issue
Polylines_TracingBug.zip
The newly digitised polyline has vertices at locations where other lines intersect it, but where there isn't a vertex on the green line that was traced.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
GroupStats
2.2.7
processing_r
3.1.1
valuetool
3.0.15
db_manager
0.1.20
processing
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: