-
-
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
enable snapping in georeferenceer #60156
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
Great! This PR fixes #52306. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for me, except one comment.
This PR could be splited (one for the fix and one to enable snapping in georef), but go ahead.
QgsSnappingConfig snappingConfig; | ||
snappingConfig.setMode( Qgis::SnappingMode::AllLayers ); | ||
snappingConfig.setTypeFlag( Qgis::SnappingType::Vertex ); | ||
snappingConfig.setTolerance( 10 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you use the default snaping tolerance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't find any default snapping tolerance!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be "default-snapping-tolerance" available in Options->Map Tools->Digitizing->Snapping
@agiudiceandrea a better fix has been pushed by @benwirf in #60166, we'll move the test there so it can be backported. |
I downloaded the Build window and I see that the vertex snap is always active, it would be useful to be able to activate and deactivate it as well as change the type of snap. |
d8849b8
to
9acae77
Compare
@pigreco here you go georef-snapp-2.mov |
thanx a lot @3nids !!! |
@3nids A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
@lbartoletti do you want to re-check with the last commit? |
@3nids |
This enables snapping and advanced dock widget in the georeferencer.
georef-snapping.mov
Also fixes a regression from #58755 where snapping in QgsMapToolCapture was not working anymore in a scenario without an active layer.
Test added for this.