直接上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;
}
}
网友评论