-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Digitizing: deleting vertexes with backspace can cause spikes when layer and project CSR don't match #58813
Comments
On more investigation this seems to happen only when the layer and project CRSs are different. |
The issue didn't occur using QGIS 3.28.15. |
Okay, interesting. Now that I discovered it's linked to the CRSs I tested again in 3.38.2 and there it does reproduce for me. Also another issue with the rubberband happens when you backspace-delete all vertexes. The rubberband behaves oddly, although the actual digitized geometry is correct. This is in 3.38.2 as well and only when the CRSs don't match.: I've created a test project here, inside a GeoPackage in case someone else wants to see if it replicates: |
Yes, the reported issue occurs using both the current versions QGIS 3.38 and QGIS 3.34 and also the previous versions 3.36 and 3.32. It didn't occur using QGIS 3.28. |
Oh, my bad then. I mixed up the version numbers. |
@JuhoErvasti i can't reproduce using current master and your demo project. is this still an issue? |
@nyalldawson , both the incorrect reported behaviours occurs even using the latest QGIS 3.39.0-Master b144272 from OSGeo4W on Windows 10. |
I can reproduce the weird behaviour when deleting the second last vertex, but not a CPU spike |
@nyalldawson I was referring to a spike in the polygon geometry here, not a CPU spike. Probably could've made that clearer 😅. I don't have the latest master compiled yet, but it does reproduce on 3.39.0-Master d85f3c2. |
Me neither observe a CPU spike. Maybe the reporter didn't intend "CPU spike". |
What is the bug or the crash?
When you're digitizing a geometry on a layer whose CRS is different from the project CRS and use the backspace to cancel added vertexes up to the second to last vertex it causes a spike. Probably better explained by this gif:
It's most apparent with polygon layers but also happens on line layers where there's going to be a duplicate line segment in the geometry.
Happens regardless of the digitizing tool.
Steps to reproduce the issue
Versions
Supported QGIS version
New profile
Additional context
The text was updated successfully, but these errors were encountered: