Exemple #1
0
 public void Dispose()
 {
     if (!fsWorldCountries.IsDisposed)
     {
         fsWorldCountries.Close();
         fsWorldCountries.Dispose();
     }
 }
 /// <summary>
 /// Method to dispose the feature set (if it is not locked=
 /// </summary>
 /// <param name="disposing">Disposing?</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (!_featureSet.IsDisposeLocked)
         {
             _featureSet.Dispose();
         }
     }
 }
Exemple #3
0
 public void shpAreaReCalculate()
 {
     fs.DataTable.Columns.Add(new DataColumn("ShpArea", typeof(double)));
     foreach (IFeature feature in fs.Features)
     {
         feature.DataRow.BeginEdit();
         feature.DataRow["ShpArea"] = feature.Area();
         feature.DataRow.EndEdit();
     }
     fs.Save();
     fs.Dispose();
 }
        /// <summary>
        /// Tries to save output if we are running in the append mode.
        /// </summary>
        protected bool TrySaveForAppendMode(OutputLayerInfo output, IFeatureSet fsNew)
        {
            if (!output.MemoryLayer)
            {
                if (!OutputManager.SaveAppendModeFeatureSet(fsNew, output, Log))
                {
                    fsNew.Dispose();
                    return(false);
                }
            }

            return(true);
        }