以buffer为例:

1.文件

2.内存图层

 Geoprocessor gp = new Geoprocessor();
            gp.OverwriteOutput = true;//否则第重复执行时会出错
            IGeoProcessorResult result;

            ESRI.ArcGIS.AnalysisTools.Buffer  buffer = new ESRI.ArcGIS.AnalysisTools.Buffer();
            buffer.in_features = pFeatureLayer ;
           buffer.out_feature_class  = @"E:\Export_Output_0000012.shp";
           buffer.buffer_distance_or_field = 10;

 


            result = gp.Execute(buffer, null) as IGeoProcessorResult;
            if (result.Status == esriJobStatus.esriJobSucceeded)
            {
                for (int count = 0; count <= result.MessageCount - 1; count++)
                {
                    Console.WriteLine(result.GetMessage(count));
                }

            }

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2021-11-30
  • 2021-07-13
  • 2021-07-31
相关资源
相似解决方案