We're updating the issue view to help you get more done. 

Importshapefile crash with invalid geometry

Description

Using a converted layer into shapefile in If original layer has invalid geometries, a crash occurs

OgrLayer lay = ds.GetLayerByName("t_zsro");
Shapefile sf2 = lay.GetBuffer();
ds.ImportShapefile(sf2, "test3", "OVERWRITE=YES", tkShapeValidationMode.TryFixSkipOnFailure);

Crash do not occurs with a shapefile.

About validation mode, how is it possible to catch wrong features ?

Thanks

Environment

None

Status

Assignee

Unassigned

Reporter

Olivier Leprêtre

Labels

None

Affects versions

v4.9.4.2

Priority

High