On 7 June 2017 at 21:20, johnrobot <johnro...@gmail.com> wrote: > Hi > There is no additional code. I didnĀ“t expect the first example to work, but > I do consider the crash a bug. I get the same result in QGIS 2.14.6 on > Windows 7. I will open a ticket for it.
Likely what's happened is you've run this in the Python console, and somewhere in the session a previous command has stored a temporary object in the geom variable. Otherwise Python would error out with a message like ''NoneType' object has no attribute 'asPoint'. I suspect it's a result of https://issues.qgis.org/issues/777, which is fixed for 3.0 Nyall _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user