Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 public void EndWrite(EndWriteOption option = EndWriteOption.DoNotWriteBadGeometries)
 {
     try { endWrite(option); }
     catch { }
 }
Esempio n. 3
0
 public void EndWrite(out string errorMessage, EndWriteOption option = EndWriteOption.DoNotWriteBadGeometries)
 {
     errorMessage = "";
     try { endWrite(option); }
     catch (Exception ex) { errorMessage = ex.Message; }
 }