void CalcLength(string tmpshp)
        {
            var expression = "float(!SHAPE.LENGTH@YARDS!)";
            CalculateField cgridX = new CalculateField(tmpshp, "Length", expression);
            cgridX.expression_type = "PYTHON";
            IGeoProcessorResult gpResX = gp.Execute(cgridX, nullas IGeoProcessorResult;
            Console.WriteLine("计算长度");
        }
  var gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();
            gp.AddOutputsToMap = true;
            gp.OverwriteOutput = true;
            gp.TemporaryMapLayers = true;

 

相关文章:

  • 2022-12-23
  • 2022-02-18
  • 2021-10-30
  • 2021-12-28
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案