Would it be acceptable to do this from the PostGIS data provider,
at construction time ? Or is there a callback/event that is dispatched
when user enters editing mode ?

Should be no problem to do it from PostGIS provider (no GUI involved). However, as the property is stored in the project, it could be changed if the user loads a new project or goes with a new empty project.

Regards,
Marco

On 19.02.2013 11:05, Sandro Santilli wrote:
[ moved to qgis-developer ]

On Mon, Feb 18, 2013 at 08:02:10AM +0100, Marco Hugentobler wrote:
On 15.02.2013 18:29, Sandro Santilli wrote:
I was looking for a way to programmatically enable
'topological editing' while editing "TopoGeometry" layers in qgis.
If you can help there I'm all ears :)
This is stored as a project property. So you can do:
QgsProject::instance()->writeEntry( "Digitizing",
"/TopologicalEditing", true )

QGIS then tries to find matches for each vertex of a geometry, using
tolerance 0.0000001 for degrees, 0.001 for meters and 0.0001 for
feet.
Would it be acceptable to do this from the PostGIS data provider,
at construction time ? Or is there a callback/event that is dispatched
when user enters editing mode ?

--strk;

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer


--
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
[email protected] http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to