109 | | The examples above are based on [http://lists.osgeo.org/pipermail/gdal-dev/2010-September/026027.html email from Even Rouault]. |
| 109 | The information above is based on [http://lists.osgeo.org/pipermail/gdal-dev/2010-September/026027.html email from Even Rouault]. |
| 110 | |
| 111 | === Python crashes if you add a new field to an OGR layer when features deriving from this layer definition are still active === |
| 112 | |
| 113 | For example: |
| 114 | |
| 115 | {{{ |
| 116 | >>> feature = lyr.GetNextFeature() |
| 117 | >>> field_defn = ogr.FieldDefn("foo", ogr.OFTString) |
| 118 | >>> lyr.CreateField(field_defn) # now, existing features deriving from this layer are invalid |
| 119 | >>> feature.DumpReadable() # segfault |
| 120 | < Python crashes > |
| 121 | }}} |
| 122 | |
| 123 | For more information, please see #3552. |