Skip to content
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

Snapping line vertex on curved line segment results in an offset #46385

Closed
2 tasks done
j-briant opened this issue Dec 6, 2021 · 4 comments
Closed
2 tasks done

Snapping line vertex on curved line segment results in an offset #46385

j-briant opened this issue Dec 6, 2021 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality

Comments

@j-briant
Copy link

j-briant commented Dec 6, 2021

What is the bug or the crash?

When moving a vertex from a line geometry (linestring, compoundcurve) and snapping it on a segment of a curved geometry, the point is placed next to the curve, where the line would be if the geometry was not curved.
Occured on PostGIS and temporary layers.

Expected: the moved point would be on the curved segment.

snap-to-curve

Steps to reproduce the issue

  1. Create a line geometry (curved or not)
  2. Create a curved geometry
  3. Activate Snapping
  4. Vertex Tool (current layer)
  5. Move a vertex from [1. line geometry] onto a segment of [2. curved geometry]

Versions

Observed on QGIS 3.16.10 and 3.16.11, reproduced on 3.22.1

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@j-briant j-briant added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 6, 2021
@gioman gioman added the Digitizing Related to feature digitizing map tools or functionality label Dec 6, 2021
@gioman
Copy link
Contributor

gioman commented Dec 6, 2021

@j-briant does it happens also if you use a projected CRS for the layers?

@gioman gioman added the Feedback Waiting on the submitter for answers label Dec 6, 2021
@j-briant
Copy link
Author

j-briant commented Dec 9, 2021

@gioman Well now I'm confused, I can't reproduce this exact bug on Windows. But it does happen with both geographic and projected systems on Ubuntu 20.04 with QGIS 3.22.1
However on Windows 10, the Snapping Tool keeps having an offset when zooming after the snap, the moved point doesn't touch the curved line, both in geographic and projected systems (see gif). But maybe I'm missing something here.

windows_qgis_snap

@gioman gioman removed the Feedback Waiting on the submitter for answers label Dec 9, 2021
@gioman
Copy link
Contributor

gioman commented Dec 9, 2021

@j-briant I can replicate the problem. It happens when snapping to segment, if you snap to vertexes it work as expected.

@alexbruy
Copy link
Contributor

Duplicates #53197.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality
Projects
None yet
Development

No branches or pull requests

3 participants