public bool Init()
        {
            _messages = new List <string>();
            if (System.IO.File.Exists(SaveFilePath))
            {
                System.IO.File.Delete(SaveFilePath);
            }
            if (!ArcGISFileHelper.CreatePersonalDataBase(SaveFilePath))//创建数据库文件失败
            {
                return(false);
            }
            if (FeatureClass != null)
            {
                var values = FeatureClass.GetUniqueValue(FieldName);
                var tool   = new Select();
                foreach (var item in values)
                {
                    tool.in_features       = FeatureClass;
                    tool.out_feature_class = string.Format("{0}\\{1}_{2}", SaveFilePath, LayerName, item);
                    tool.where_clause      = string.Format("[{0}] = '{1}'", FieldName, item);
                    if (!GPHelper.Excute(tool))
                    {
                        _messages.Add(string.Format("执行{0}发生错误", tool.where_clause));
                    }
                }

                return(true);
            }
            return(false);
        }
 private void Program(string saveDataBasePath, IFeatureClass clipFeatureClass)
 {
     foreach (var layer in Layers)
     {
         _tool.in_features       = string.Format("{0}\\{1}", DataBasePath, layer);
         _tool.clip_features     = clipFeatureClass;
         _tool.out_feature_class = string.Format("{0}\\{1}", saveDataBasePath, layer);
         if (!GPHelper.Excute(_tool))
         {
             _messages.Add(string.Format("执行{0}发生错误", _tool.out_feature_class));
         }
     }
 }