[Qgis-developer] Python: how to set snapping options?
Marco Hugentobler
marco.hugentobler at sourcepole.ch
Wed Nov 23 11:02:29 EST 2011
Hi Andreas
It can be done using QgsProject::instance()->writeEntry(...). You may
look in the class src/app/qgssnappingdialog.cpp how QGIS does it.
Regards,
Marco
On 23.11.2011 14:42, Andreas Neumann wrote:
> Hi,
>
> I'd like to programmatically set the snapping option I just added with
> my python plugin:
> * turn on snapping within its own layer
> * set avoid intersection
>
> Does anyone have a hint or code how to accomplish this?
>
> Thanks,
> Andreas
>
More information about the Qgis-developer
mailing list