[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-developer
Subject:    Re: [Qgis-developer] Problem definig snapping options programmatically
From:       John Layt <jlayt () kde ! org>
Date:       2016-06-24 12:37:23
Message-ID: CAM1DM6=isLi5Y0yS4WE7svE7_i3H5JusHFbMStOhfpB96g+NsA () mail ! gmail ! com
[Download RAW message or body]

On 24 June 2016 at 12:06, John Stevenson <john.stevenson@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.
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic