Re: [gdal-dev] Seg fault exporting to wkt...

2012-11-27 Thread Even Rouault
Le mardi 27 novembre 2012 20:35:11, Tyler Mitchell a écrit : > Just curious why the following two (seemingly similar) approaches using OGR > Python access act differently. Should it act that way? http://trac.osgeo.org/gdal/wiki/PythonGotchas ... > > This works: > ... > f1 = lay1.GetFeature(1)

[gdal-dev] Seg fault exporting to wkt...

2012-11-27 Thread Tyler Mitchell
Just curious why the following two (seemingly similar) approaches using OGR Python access act differently. Should it act that way? This works: ... f1 = lay1.GetFeature(1) g1 = f1.GetGeometryRef() g1.ExportToWkt() This seg faults: ... g1 = lay1.GetFeature(1).GetGeometryRef() g1.ExportToWk