zoukankan      html  css  js  c++  java
  • 利用gp自己做的生成缓冲区的代码

    主要部分代码,参数来源略

                Geoprocessor gp = new Geoprocessor();
                gp.OverwriteOutput = true;
                ESRI.ArcGIS.AnalysisTools.Buffer pbuffer = new ESRI.ArcGIS.AnalysisTools.Buffer();
                pbuffer.in_features = pFeLayer;
                pbuffer.buffer_distance_or_field = Convert.ToString((this.textBox1.Text)) + " " + (string)this.comboBox2.Text;
                pbuffer.out_feature_class = this.textBox2.Text;
                gp.Execute(pbuffer, null);
                IFeatureLayer pFeatureLayer = new FeatureLayerClass();
                IWorkspaceFactory pWsF = new ShapefileWorkspaceFactoryClass();
                IFeatureWorkspace pFWs = (IFeatureWorkspace)pWsF.OpenFromFile(FilePath, 0);
                IFeatureClass pFeatureClass = pFWs.OpenFeatureClass(FileName);
                pFeatureLayer.FeatureClass = pFeatureClass;
                pFeatureLayer.Name = pFeatureClass.AliasName;
                prmForm.axMapControl1.AddLayer(pFeatureLayer);
                MessageBox.Show("缓冲完毕", "提示");
                prmForm.axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewAll, null, null);

  • 相关阅读:
    CentOS7虚拟机安装Linux教程及安装后所遇到的问题
    华为测试用例模板简写
    python字符串大小写转换
    python解释器的下载和安装
    Git安装和常用命令
    python保留两位小数
    python中list的使用
    安装Maven及Eclipse中配置Maven
    伪静态技术
    CI框架两个application共用同一套 model
  • 原文地址:https://www.cnblogs.com/weihongli/p/2173832.html
Copyright © 2011-2022 走看看