Uploaded image for project: 'MapWinGIS'
  1. MWGIS-63

Importshapefile crash with invalid geometry

    Details

    • Type: Bug
    • Status: To Do
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: v4.9.4.2
    • Fix Version/s: None
    • Labels:
      None

      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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                olivier.lepretre Olivier Leprêtre
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: