GP的输入参数

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

            }

你可能感兴趣的:(参数)