private void endWrite(EndWriteOption option) { exporterOpened = false; if (option == EndWriteOption.AppendBadGeometries && exporterBadFeatures != null) { foreach (var feat in exporterBadFeatures) { exporterLayer.CreateFeature(feat); } } exporterLayer.CommitTransaction(); exporterLayer.SyncToDisk(); exporterBadFeatures = null; exporterSrid.Dispose(); exporterSrid = null; exporterFeatDefn.Dispose(); exporterFeatDefn = null; exporterLayer.Dispose(); exporterLayer = null; exporterDataSource.Dispose(); exporterDataSource = null; }
public void EndWrite(EndWriteOption option = EndWriteOption.DoNotWriteBadGeometries) { try { endWrite(option); } catch { } }
public void EndWrite(out string errorMessage, EndWriteOption option = EndWriteOption.DoNotWriteBadGeometries) { errorMessage = ""; try { endWrite(option); } catch (Exception ex) { errorMessage = ex.Message; } }