Prevent the segfaults that occur when invalid geometries are passed to the layer encoder by rolling back any written geometries, rather than rolling back the entire layer writer.
Note, with this fix, the keys and values added by the invalid feature will stay in the layer, which I think is acceptable for the edge case situation.
Prevent the segfaults that occur when invalid geometries are passed to the layer encoder by rolling back any written geometries, rather than rolling back the entire layer writer.
Note, with this fix, the keys and values added by the invalid feature will stay in the layer, which I think is acceptable for the edge case situation.
cc/ @springmeyer @flippmoke