AE二次开发,空间分析图层相交操作代码

private void btnIntersect_Click(object sender, EventArgs e)

        {

            ESRI.ArcGIS.Geoprocessor.Geoprocessor GP = new ESRI.ArcGIS.Geoprocessor.Geoprocessor();

            ESRI.ArcGIS.AnalysisTools.Intersect intersect = new ESRI.ArcGIS.AnalysisTools.Intersect();

            intersect.in_features = @”E:\shp\insert1.shp;E:\shp\insert2.shp”;

            intersect.out_feature_class = @”E:\result\intersect.shp”;

            IGPProcess GProcess1 = intersect ;

            GP.Execute(GProcess1, null);

            axMapControl1.AddShapeFile(@”E:\result\”, “intersect.shp”);

            axMapControl1.Refresh();

        }

转载自:https://blog.csdn.net/u011116642/article/details/10982969

You may also like...