使用AE时,如果程序中需要调用ArcToolbox中的功能,可以直接调用Geoprocessor接口实现,例如实现地图裁剪功能,首先添加引用
using ESRI.ArcGIS.Geoprocessing;
using ESRI.ArcGIS.Geoprocessor;
using ESRI.ArcGIS.AnalysisTools;
using ESRI.ArcGIS.Geoprocessor;
using ESRI.ArcGIS.AnalysisTools;
然后进行实现即可:
private void button1_Click(object sender, EventArgs e)
{
ESRI.ArcGIS.Geoprocessor.Geoprocessor ge = new Geoprocessor();
Clip cp = new Clip("D:\\arcmap data\\断裂.shp", "D:\\arcmap data\\区域构造单元.shp", "D:\\arcmap data\\clip.shp");
ge.Execute(cp, null);
MessageBox.Show("ok");
}
{
ESRI.ArcGIS.Geoprocessor.Geoprocessor ge = new Geoprocessor();
Clip cp = new Clip("D:\\arcmap data\\断裂.shp", "D:\\arcmap data\\区域构造单元.shp", "D:\\arcmap data\\clip.shp");
ge.Execute(cp, null);
MessageBox.Show("ok");
}
具体可参考
http://www.cnblogs.com/gisoracle/archive/2011/04/17/2019185.html