ArcGis 计算线段长度

        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, null) as IGeoProcessorResult;
            Console.WriteLine("计算长度");
        }  var gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();            gp.AddOutputsToMap = true;            gp.OverwriteOutput = true;            gp.TemporaryMapLayers = true; 
上一篇:jquery 获取select选中的值


下一篇:CoFun 1616 数字游戏