[Qgis-developer] Problem definig snapping options programmatically

John Layt jlayt at kde.org
Fri Jun 24 05:37:23 PDT 2016


On 24 June 2016 at 12:06, John Stevenson <john.stevenson at thinkwhere.com> wrote:
> Hi Christian,
>
> Yes, my problem is exactly the same as yours, and so I have the same questions, too:
>
> - is it a bug or a feature that the settings are not applied immediately by setSnapSettingsToLayer()?
> - is there a way to change snapping settings to Advanced via Python?

Have a look at my code for doing lots of snapping stuff like that,
feel free to borrow it under GPLv2+:

https://github.com/lparchaeology/libarkqgis/blob/master/snapping.py

Really must get around to releasing that plugin I wrote to configure
snapping using a single toolbar button...

John.


More information about the Qgis-developer mailing list