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