/// <summary> /// Clones the input datasource, saves it to the disk and starts append mode. /// </summary> public bool SaveAppendModeFeatureSet(IFeatureSet fs, OutputLayerInfo output, IToolLogger log) { if (File.Exists(output.Filename)) { if (output.Overwrite) { if (!GeoSource.Remove(output.Filename)) { log.Info("Failed to overwrite."); return(false); } } else { log.Info("Overwrite options isn't selected."); return(false); } } if (!fs.SaveAsEx(output.Filename, true)) { log.Info("Failed to save resulting datasource: " + fs.LastError); return(false); } fs.StartAppendMode(); return(true); }