美文网首页
2. arcengine拓扑:实现图层合并(c#)

2. arcengine拓扑:实现图层合并(c#)

作者: 清远_03d9 | 来源:发表于2019-08-19 14:27 被阅读0次

    直接上demo

    using ESRI.ArcGIS.Geoprocessor;
    using ESRI.ArcGIS.Geoprocessing;
    using ESRI.ArcGIS.DataManagementTools;
    
     /// <summary>
            /// 图层合并
            /// </summary>
            /// <param name="inputPaths"></param>
            /// <param name="outputPath"></param>
            /// <returns></returns>
            public static IGeoProcessorResult MergeFeatureClass(string inputPaths, string outputPath)
            {
                try
                {
                    Merge pMerge = new Merge(inputPaths, outputPath);
                    Geoprocessor GP = new Geoprocessor();
                    GP.OverwriteOutput = true;
                    GP.TemporaryMapLayers = false;
                    return GP.Execute(pMerge, null) as IGeoProcessorResult;
                }
                catch
                {
                    return null;
                }
            }
    

    相关文章

      网友评论

          本文标题:2. arcengine拓扑:实现图层合并(c#)

          本文链接:https://www.haomeiwen.com/subject/feyssctx.html