[Qgis-developer] geometry().geometry() not stable ?

Matthias Kuhn matthias at opengis.ch
Mon Jun 27 22:09:13 PDT 2016


Hi

On 06/27/2016 03:17 PM, 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

What operating system/distribution are you using? Where did you install
the package from?

Regards
Matthias


More information about the Qgis-developer mailing list