[Qgis-developer] Programmatically enable topological editing

Sandro Santilli strk at keybit.net
Tue Feb 19 02:05:00 PST 2013


[ 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;



More information about the Qgis-developer mailing list