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

Activity

Show:
Olivier Leprêtre
February 18, 2017, 12:11 PM
Edited

Not sure if the cause is invalid geometries, could be multi-part
Edit
Neither one, features are in the results crash seems to occur at the end of the import.

Assignee

Unassigned

Reporter

Olivier Leprêtre

Labels

None

Fix versions

Affects versions

Priority

High
Configure