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);

  • 相关阅读:
    CSS3媒体查询总结
    关于前端学习规划
    开发技术版本
    Visual Studio 问题汇总
    asp.net web core 开发问题汇总(1)
    asp.net web core 部署问题汇总
    报表平台需求文档(V0.0.0.1)
    Git使用说明
    派生类
    cin、cout的重载
  • 原文地址:https://www.cnblogs.com/weihongli/p/2173832.html
Copyright © 2011-2022 走看看