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);
新建一个在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);
相关文章推荐
- AE开发实现GP工具IDW
- 文章标题
- Google推荐的图片加载库Glide于Picasso比较
- 设置UIView的对象不透明
- 配置idea识别Spring的配置文件或Java配置类
- 版本控制——入门
- OK6410之Qt移植全过程记录
- mt7620 按键驱动
- 位运算
- 对以往一些笔记的看法
- 【转】C语言的协程
- 基于比较的内部排序总结
- jdbc防止sql注入方法总结
- 第三章 关于控件的一些技巧
- 产品经理技能之MRD的笔记之一
- 【转】ButterKnife的使用--不错
- 怎么删除windows中无用的服务
- 对同学的复利计算程序进行评价
- Binary Tree Postorder Traversal
- MySQL查询order by相减select相减的Sql语句