[Qgis-developer] geometry().geometry() not stable ?
Sandro Santilli
strk at kbt.io
Mon Jun 27 10:25:22 PDT 2016
On Mon, Jun 27, 2016 at 01:17:26PM +0000, Gusthiot Christophe wrote:
> Hello,
> I'm working on a Python plugin with 3D features. But I have some issues with the available methods.
>
> What I'm doing :
>
> - layer->startEditing, to set the layer editable if it's not yet the case (asking the user to do it)
> - feature->geometry->geometry, to have the 3D geometry for my feature
> - then I manipulate the geometry
> - layer->changeGeometry, to update the geometry of my feature
> Until the, It works fine...
> - I keep my layer editable, and try to do the same with another feature
> - but : I can do feature->geometry, but feature->geometry->geometry give me "Access violation - no RTTI data!"
> - and if I add updateExtents + commitChanges to save my layer, and try to do the same again, the feature->geometry->geometry leads to a mini dump
>
> Anyone to explain to me what's going on ?
It would be best to file a ticket with all this information,
and ideally a script that can be run to reproduce the problem.
--strk;
More information about the Qgis-developer
mailing list