1.Personal GDB

新建一个在E盘的名为test的mdb:
IWorkspaceFactory workspaceFactory = new AccessWorkspaceFactoryClass();
 workspaceFactory.Create("E:\\", "TEST", null, 0);
2.Filegdb
初始化一个在E盘名为TEST2的Filegdb
            ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();//实例化一个项
            gp.OverwriteOutput = true;
            CreateFileGDB gdb = new CreateFileGDB();//实例化一个FileGDB
            string Fdir = "E:\\TEST2";
            gdb.out_folder_path = System.IO.Path.GetDirectoryName(Fdir);
            gdb.out_name = System.IO.Path.GetFileName(Fdir);
            gp.Execute(gdb, null);
 
3.shapefile
初始化一个在E盘名为TEST3的shapefile
            ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();//实例化一个项
            gp.OverwriteOutput = true;
            CreateFeatureclass feaCls = new CreateFeatureclass();//实例化一个
            feaCls.out_path = "E:\\";
            feaCls.out_name = "test3";
            gp.Execute(feaCls, null);

相关文章:

  • 2021-11-28
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2021-08-07
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案