zoukankan      html  css  js  c++  java
  • ARCGIS常用几种本地数据AE初始化

    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);
  • 相关阅读:
    程序为什么加载到内存中
    cortex-A cortex-R cortex-M处理器的性能比较
    makefile 中的赋值方式
    python(老男孩全栈观后感------文件处理)
    python------lambda(匿名函数)
    python------filter(过滤器)
    Express深入解读
    nodejs安装
    一道有意思的题目
    charAt获取数组,测试
  • 原文地址:https://www.cnblogs.com/jhlong/p/5394512.html
Copyright © 2011-2022 走看看