[Qgis-user] QGIS 2.18.9 crash using Python console

Nyall Dawson nyall.dawson at gmail.com
Tue Jun 6 16:00:13 PDT 2017


On 7 June 2017 at 06:18, johnrobot <johnrobot at gmail.com> wrote:
> Hi
> I had a look at the python examples at
> http://www.qgistutorials.com/en/docs/getting_started_with_pyqgis.html. I
> noticed that when I run
>
> layer = iface.activeLayer()
> for f in layer.getFeatures():
>   print geom.asPoint()
>
> QGIS crashes and creates a dump file. Is this a known issue? Running
>

Where's geom set here? Can you show the rest of your code?

Nyall



More information about the Qgis-user mailing list