Feature request #7058

Snapping priority - Prioritise vertices over lines

Added by Stuart Ladd over 7 years ago. Updated over 3 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Digitising
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:16143

Description

Supposing I have several polyline/gon layers when digitising, or even just one layer:

First geomerty, A, has a line (or part of a polygon).
Second geometry, B, has 2 vertices (and the line between) snapped to a segment of A's line.

When I digitise a new geometry that needs to meet those 2 vertices exactly (either contained inside B or 100% non-intersecting with B, or overlapping), the digitiser snaps to the line but cannot snap accurately to the vertices.

It would be nice to have a tighter snap when you approach a vertex which happens to lie on a line. And/or some kind of indicator/highlighting of what is being snapped to (a la Illustrator for example).

Because of variations in layers and perhaps wanting to overlap, the 'Avoid Int' option does not acheive what is needed.

History

#1 Updated by Olivier Dalang over 6 years ago

Hi !

This issue seem to have been forgotten, but I find it quite serious (plus probably not too hard to implement).
I'd actually flag it as a bug rather than a feature.

I think priority should be :
1. current layer's vertices
2. background layers' vertices
3. current layer's segments
4. background layers' segments

For background snaps, the snap could be done either by prioritizing the nearest one or the first one by display order... Not sure what's best ?
I guess nearest one is more practical, but in case one has layers covering other layers, order of appearance may be better.

Thanks !

#2 Updated by luca76 - over 6 years ago

This method would be really useful for many plugins.

#3 Updated by Leyan Ouyang over 6 years ago

Could you check if the latest master is better regarding the snapping priority? I modified the snapping order to prefer vertices in the pull request 1260 last month.

#4 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No

Also available in: Atom PDF