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
Fix Topological editing when CRS are different #41306
Fix Topological editing when CRS are different #41306
Conversation
Is this ready for review? |
Yes please. I need to fix other maptools, but I prefer to do this in separated PRs. |
Quite possibly - if you wait till the Github Actions PR is merged then we can re-test... |
It depends, I'll need this PR to fix the other tools. Maybe I can disable the test for now and I note to readd tests when the GH Actions PR is merged? |
@lbartoletti it's really not far off - likely a matter of hours |
@lbartoletti if you rebase against master now and force push you'll get the new github workflow |
0794bcb
to
c6f9e23
Compare
Seems to be OK @nyalldawson ? |
Thanks @nyalldawson |
Description
The addTopologicalPoints methods attempt to add points without checking the CRS -- which makes sense. So, Topology editing does not work when layers have different CRS.
There are several problems when we use on-the-fly projection, the first is that points are not added when a layer has a different CRS. fix 1
The second one is that when we want to snap to a segment of a layer with a different CRS, it will snap to a vertex (the calculation is done with different coordinates), this is the original request of #29648
Fix 1. Add topological points on layer with a different CRS
before
after
Fix 2. Fix topological editing when CRS are different
before
after
TODO:
other toolswill be fixed in dedicated PR to avoid some confusion