您的位置:首页 > 其它

ARCGIS常用几种本地数据AE初始化

2016-04-15 10:53 232 查看
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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: