[Qgis-developer] Programmatically enable topological editing

Marco Hugentobler marco.hugentobler at sourcepole.ch
Tue Feb 19 02:12:55 PST 2013


>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
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


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



More information about the Qgis-developer mailing list